Re: Execute a applescript from the CL
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.