Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: DCraft99Posted on 2009-06-15 at 12:32:28ID: 24632182
Figured it out. (Hope no Expert's spent time yet. I struggle to figure how much looking/experimenting to do before posting.)
Use "open -t -n -W".
-t: run the default text editor, as determined via LaunchServices;
-n: open a new instance (required so invoking program can detect finished by editor exiting, and user
doesn't have to exit any previously-opened/global instance of the editor)
-W: wait for exit before returning
It has to be wrapped into a script (see attached). I realized that since Mercurial honors the EDITOR env variable, I can just leverage that while also supporting all other programs that do so.
Run default Mac OS X text editor via command line