Enhance Mac OSX by enabling the Applescript menu and you will have a fast convenient way to access any script for any application. There are some super cool tricks with Script Menu, which I will explain here.
To enable the Applescript Menu, open the application: |
|
|
The Applescript menu features an easy way to create custom script folders for the frontmost application. |
Notice that the new folder is created at ~/Library/Scripts/Applications/Finder/. This is the default location of your Script Menu folders for each application. |
While you are in the Applescript folder, open Script Editor and check it out. You can write small applescripts, although Script Editor is very rudimentary.
for example:
tell application "Firefox" to launch
would be a simple script.
You can send scripts to Terminal, which is very convenient to see output. In this example:
tell application "Terminal" do script "id -un" end tell
Terminal will always spawn a new window for the command. Execute the same command in in the same window by saying this:
tell application "Terminal" do script "id -un" in front window end tell
or shorter yet:
tell application "Terminal" to do script "id -un" in front window
There are many customizable tricks with Terminal, Applescript and shell.
209 page views.

