Calling the Command Line from AppleScript

  1. Running AppleScript from the Command Line
  2. AppleScript and the Command Line

You can also call your command-line scripts and utilities from within your AppleScripts. Use the “do shell script” command for that. For example, if you have a Perl script called “makeHTML” in “/usr/local/bin” you could use

do shell script "/usr/local/bin/makeHTML"

to run the command.

  1. Running AppleScript from the Command Line
  2. AppleScript and the Command Line