• 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
Re: osascript from the terminal: error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >osascript from the terminal: error? (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: AS 1.6 Random Number Bug?
  • Next by Date: Re: osascript from the terminal: error?
  • Previous by thread: osascript from the terminal: error?
  • Next by thread: Re: osascript from the terminal: error?
  • Index(es):
    • Date
    • Thread