|
|
A shell/AppleScript interaction trick
Here's the niftiest application of this idea I've come up with so far. This tiny little script
can be used to start up any gui application from the command line. I call it "run", but another name might be preferable. It must be in your path and made executable.
For example:
Now, some of these could profit from additional scripting, such as causing them to open files, set templates/modes/etc, but for a quick-and-dirty CLI interface to the GUI apps, this works very well.
Note: you have to type the whole name of the app, which sometimes includes version numbers and so on. Greg Shenaut
A shell/AppleScript interaction trick
Just a quick addendum: you can replace the "activate" with other standard applescript commands, for example "quit", and make a script of that name or some other appropriate name. Then you can say things like:
and so on. Just a random thought.
Greg Shenaut
open
The same functionality is available via the standard 'open' command (/usr/bin/open).
open
That's similar, but not identical functionality. It needs the -a and quotes around names containing spaces, and it can't do things like "quit". Also, since it's a script, it's possible to make other customizations on "run", such as looking up the full name in a table, so you can say "run word" instead of "run microsoft word":
Greg Shenaut
automaitc "longnames" list
i figured out this one: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|