Re: osascript from the terminal: error?
Re: osascript from the terminal: error?
- Subject: Re: osascript from the terminal: error?
- From: Jonathan Neff <email@hidden>
- Date: Fri, 30 Mar 2001 10:39:06 -0500 (EST)
Put quotes around your statement to execute.
-jonathan
---
[localhost:~] jjneff% /usr/bin/osascript '2+2'
4
---
On Fri, 30 Mar 2001, Timothy Bates wrote:
>
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 ;-(]
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
***********
Jonathan Neff
Student Technology Centers
Indiana University - Bloomington
email@hidden