Calling Applescript from Unix Shell scripts
Calling Applescript from Unix Shell scripts
- Subject: Calling Applescript from Unix Shell scripts
- From: email@hidden
- Date: Fri, 27 Jul 2007 14:24:40 -0400
Hi folks,
I've looked through the archives for answers to these questions.
Unfortunately the terms are so generic that I usually end up with
results that talk about "do shell script". Sorry if these are
questions that come up often. Please feel free to refer me to any other
threads or FAQs.
I am using Apple's Installer to install my product. The installer can
be modified with Unix shell scripts (I know that if my product only
needs 10.4 or later I can use Javascript plug-ins, but that is not the
case here). In my case I am using Bash as the shell script, if that
matters.
Inside my shell scripts, I occasionally run Applescript .app files in
order to present some GUI dialog boxes, or to mess around with alias
files, or whatever.
1) Is there a way to have Applescript output text that can end up in
the Installer's log file? Most likely the Applescript would need to be
able to write to stdout.
2) Is there a way to return an error code to the caller (Unix shell
script)? The Return command in my main Applescript handler does not
seem to be passed back to the Unix shell script.
Thanks very much in advance!
- Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden