$ oascript
zsh: command not found: oascript

Does anyone know what's up?

link|improve this question
feedback

2 Answers

up vote 4 down vote accepted
$ type -a oascript
-bash: type: oascript: not found
$ type -a osascript
osascript is /usr/bin/osascript

Perhaps you meant osascript and not oascript

link|improve this answer
okay, that was dumb. thanks! :-) – rz. Oct 6 '09 at 5:21
feedback

To run Applescript from the command line or in a shell script you need to use o**s**ascript.

eg.

osascript -e 'tell application "Finder"' -e 'activate' -e 'display dialog "Hello World!"' -e 'end tell'
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.