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