Categories
AppleScript Notes System Software Notes

macosxhints – A shell/AppleScript interaction trick

macosxhints – A shell/AppleScript interaction trick
However, there is a convention in unix that executable files that do not have a recognizable header (of which #! is one) are passed to /bin/sh for execution. This allows considerable flexibility for use with AppleScript. The most basic idea is to use a first line containing: