• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
osascript from the terminal: error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ;-(]


  • Follow-Ups:
    • Re: osascript from the terminal: error?
      • From: Christopher Nebel <email@hidden>
    • Re: osascript from the terminal: error?
      • From: John W Baxter <email@hidden>
    • Re: osascript from the terminal: error?
      • From: Jonathan Neff <email@hidden>
  • Prev by Date: Re: OS X command line?
  • Next by Date: Re: A choose application question (and C'thulhu)
  • Previous by thread: Communicating in a network.
  • Next by thread: Re: osascript from the terminal: error?
  • Index(es):
    • Date
    • Thread