Running Scripts


After you’ve built up a collection of scripts that you run frequently, you’re not going to want to switch to Script Editor every time you want to run one. This reason is precisely why Mac OS X includes the Script Menu in 10.2, which replaces the Script Runner application in 10.1 and earlier. The Script Menu sits in the OS toolbar at the top of the screen as shown in Figure 23-10. You can run any of the listed scripts by choosing it from the pop-up menu. To activate the script menu, run the Install Script Menu application from the /Applications/AppleScript folder. If you ever need to remove the menu item, run the Remove Script Menu application from the same folder.

Tip

The Script Menu is not limited to just AppleScript, it can be used to launch Perl and shell scripts as well.

click to expand
Figure 23-10: Scripts listed in Script Menu’s pop-up menu are always available no matter which application is currently active.

start sidebar
Running Scripts from the Menu Bar in OS 9

For a script menu in the Classic environment, you need the OSA Menu software. OSA Menu allows you to quickly run Mac OS 9 scripts while any Classic application is the active application. The scripts are listed in a permanent menu near the right end of the Classic menu bar. You can also use the script menu to start recording a script or open the Classic version of Script Editor. OSA Menu is a system extension for Mac OS 9. It’s on the Mac OS 9 CD in the AppleScript Extras folder, which is in the CD Extras folder.

end sidebar




Mac OS X Bible, Panther Edition
Mac OS X Bible, Panther Edition
ISBN: 0764543997
EAN: 2147483647
Year: 2003
Pages: 290

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net