• 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: Paul Reilly <email@hidden>
  • Date: Mon, 13 Jan 2003 21:43:10 +0000 (GMT)

> 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.

  • Follow-Ups:
    • Re: Execute a applescript from the CL
      • From: Charles Heizer <email@hidden>
References: 
 >Execute a applescript from the CL (From: Charles Heizer <email@hidden>)

  • Prev by Date: Re: Execute a applescript from the CL
  • Next by Date: Re: Help! Photoshop Applescript times out
  • Previous by thread: Re: Execute a applescript from the CL
  • Next by thread: Re: Execute a applescript from the CL
  • Index(es):
    • Date
    • Thread