Re: Running Stay-open scripts from the command line
Re: Running Stay-open scripts from the command line
- Subject: Re: Running Stay-open scripts from the command line
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 19 May 2001 17:17:17 -0700
On 5/19/01 4:44 PM, "Michael Ellis" <email@hidden> wrote:
>
Is there a way to run a "stay-open" script from the command-line and have
>
it actually stay open?
>
>
In Mac OS X, if you run a stay-open script using the "/usr/bin/osascript"
>
command, the script loads and immediately quits. The "on idle" handle
>
does not get invoked. Must stay-open scripts be run from the Finder?
>
>
Any insight is appreciated.
'on idle' handlers only get invoked from applets, not compiled scripts
running from editors or, presumably, command lines. On OS X they will only
be invoked from OS X applets (or droplets). hey can certainly be stay-open.
There may be further problems with OS X applets/idle handlers, which I
haven't tried yet. Check the AppleScript SourceBook's notes on OS X.
--
Paul Berkowitz