External Editor on Mac

Hi folks,

this is a somewhat newbie question. I am on the latest MacOS and the latest TD. How do I set the TOUCH_EDITOR environment variable so that TD can actually read it? I have added the export TOUCH_EDITOR=“my editor” line to my .bash_profile. And when I open my terminal, and check my environment variables using env, it shows up. Yet, when I open my TD, check under the Variables dialogue, it’s not there. When I tried to edit a text dat, TD would only open my TextEdit app.

Do I need to include the environment under the root account or something?

Any help would be greatly appreciated.
Thank you.

I went to preferences under the touchdesigner menu, and selected the DATs tab. At the bottom, you can set the path for a text editor and a table editor.

booyah!

Thank you! You the man!
I have been working with TD in Windows for too long, forgot about Preferences.

Personally, I started out with Notepad++. But now I’m using Sublime and Brackets [ cleverfiles.com/howto/top-5 … s-mac.html ]- they more than do the job and I’m very satisfied with them. You must start with this.

:sunglasses: thanks. great advice

Thank you! Thank you! :stuck_out_tongue:

I have switched over to VS Code on both Mac and PC. This way, I get to use my emacs bindings. :smiley:

Thank you for all the replies.