Re: Execute a applescript from the CL
Re: Execute a applescript from the CL
- Subject: Re: Execute a applescript from the CL
- From: "Chris Espinosa" <email@hidden>
- Date: Mon, 13 Jan 2003 14:21:07 -0800
----- Original Message -----
From: "Charles Heizer" <email@hidden>
Sent: Monday, January 13, 2003 12:45 PM
Subject: Execute a applescript from the CL
>
Hello,
>
Is it possible to execute a applescript from the command line and pipe
>
out it's results to a shell script?
osascript "Library/Scripts/My Script.scpt" | wc
See 'man osascript' for more details. The main hangup is that the osascript
process can't do any user interaction, so if your script wants to do a
display dialog, etc. it should tell the frontmost process to do it for it.
Chris
_______________________________________________
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.