osascript from the terminal: error?
osascript from the terminal: error?
- Subject: osascript from the terminal: error?
- From: Timothy Bates <email@hidden>
- Date: Fri, 30 Mar 2001 20:40:30 +1000
hi there,
just playing with osascript from the terminal, and I get errors
[localhost:~] tim% /usr/bin/osascript 2 + 2
Syntax error: Expected expression but found end of script. (-2741)
Of course 2+2 is a perfectly valid script. Any ideas on these errors?
(man osascript does not define them)
Also, I can execute this without error
[localhost:~] tim% /usr/bin/osascript beep
but I hear nothing (I do hear the beep in script debugger (which is so far
flawless in classic box), so it is not the no sound in X bug).
tim
(who is very unhappy that UI scripting additions no only be called when the
app that is playing the script is front-most [because only script-playing
apps can access additions ;-(]