home / contact 
add an appfaqlinkspollsupcoming eventssearch
 Welcome Thu Aug 24 
Site News
Apps: Audio/Video
Apps: Classic
Apps: Command Line
Apps: Database
Apps: Docklets
Apps: Emulation
Apps: Font Tools
Apps: Games
Apps: Graphics
Apps: Internet
Apps: Math/Science
Apps: Miscellaneous
Apps: Networking
Apps: OS X Server
Apps: Productivity
Apps: Programming
Apps: Screen Savers
Apps: Security
Apps: UI
Apps: Utilities
Scripts: Applescript
Scripts: Perl
Scripts: Scripting
System: Appearance
System: Drivers
System: Fonts
System: Services
System: Updates

User Functions


Don't have an account yet? Sign up as a New User

Pair Networks
Don't want to spend $99 on .Mac services from Apple?

Sign up for an account at Pair Networks, for only $5.95/Month. You'll get email, 100MB of disc space, 100MB traffic per day, and super-reliable service on one of the fastest web hosts around.

Click here to learn more!

AppleScript Shell 0.4
Jun 04, 2002 10:21AM
Contributed by: Hayne
Download: 2K .gz Archive

This "AppleScript Shell" program is intended for interactive use in a manner similar to that of the standard UNIX shells. I.e. you use it in the Terminal. You can execute simple one-line AppleScript commands by just typing them and hitting Return. The AppleScript command will be executed immediately.
But many AppleScript commands are multiple lines (E.g. 'tell' or 'repeat' commands) For these, the "AppleScript Shell" will go into a batch mode where it stores your commands until you enter the corresponding 'end' command at which point your multiple-line AppleScript command will be executed.

There are a few special commands (starting with "-") that are
interpreted by this shell.
You can exit this shell at any time by entering the command

You can save typing by defining abbreviations via the "-abbrev" command
For example:
-abbrev strack some track of playlist "Library"
defines 'strack' as an abbreviation for 'some track of playlist "Library"'
so you could then issue the AppleScript command
tell application "iTunes" to play strack
in order to play a random song from your iTunes library.

What's Related
  • More by Hayne
  • More from Scripts: Applescript

  • Story Options
  • Mail Story to a Friend
  • Printable Story Format