• 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: Execute a applescript from the CL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Execute a applescript from the CL


  • Subject: Re: Execute a applescript from the CL
  • From: Charles Heizer <email@hidden>
  • Date: Mon, 13 Jan 2003 14:51:14 -0800

Oh, this is great.

I got it to work just fine ...

Thanks a bunch,

- Charles



On Monday, January 13, 2003, at 01:43 PM, Paul Reilly wrote:


Is it possible to execute a applescript from the command line and pipe
out it's results to a shell script?


Yes, it is.
Lookup osascript in the unix man pages.
You can't pass the applescript any paramaters, but that's
not too important. Also there osacompile which might compile
a applescript for you. I couldn't get that to work, but the
plain osascript to run applescript from the command line works
a treat:

Eg:

/usr/bin/osascript /Users/paul/myscript.scpt >> output.txt


Paul
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Execute a applescript from the CL (From: Paul Reilly <email@hidden>)

  • Prev by Date: Big Cat
  • Next by Date: Re: OSX script to change/copy file icon ?
  • Previous by thread: Re: Execute a applescript from the CL
  • Next by thread: Re: Execute a applescript from the CL
  • Index(es):
    • Date
    • Thread