Re: Command line args in MacOS X
Re: Command line args in MacOS X
- Subject: Re: Command line args in MacOS X
- From: garbanzito <email@hidden>
- Date: Mon, 23 Apr 2001 11:53:58 -0600
at 4/21/01, 11:22 AM -0600, they whom i call email@hidden wrote:
From MacOS X I want to execute an applescript from the Terminal
command line and have any command line arguments available
to the script.
for now you'll have to cobble up a solution... pretty ugly,
but how about a shell script that writes args to a
predetermined file, which the AppleScript knows about and
reads to get the args? if you want to be completely
generic, you may also need a shim AppleScript, to be called
by osascript, that reads the args file and passes the args
to a handler in the target script.
steve harley email@hidden