Re: making an AS applet into a background app?
Re: making an AS applet into a background app?
- Subject: Re: making an AS applet into a background app?
- From: Sun Real <email@hidden>
- Date: Sun, 6 May 2001 10:05:03 +1000
email@hidden's message of 5/5/01 5:55 AM contained:
>
>The question is: can you guarantee that an applet will never display a
>
>dialog?
>
>
Yes, that is the question. I don't know. But, I do know that there is the
>
potential for a developer to modify or replace the standard AppleScript
>
applet with a shell. As far as I know no one has made applet shells
>
available and if they were available I don't know if they would be able to
>
guarantee they would never display a dialog. And if they could guarantee
>
that, I don't know what a guarantee like that would mean... Double your
>
money back?
Or maybe it's possibIe for an FBA to have user interaction. I haven't
actually used it but Leonard Rosenthal made ScriptFBA available for this
purpose:
http://www.lazerware.com/ftp/scriptfba_d2.hqx
Excerpted from the Read Me:
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
What is it?
-----------
By using this application, you can turn any AppleScript (or any OSA
script) into a faceless background application (FBA).
What works?
-----------
ScriptFBA supports the "on run", "on open" and "on idle" events for your
scripts. It can also handle UI brought up through OSAXen, such as
"display dialog".
What doesn't work?
------------------
"Custom" events are not YET supported.
--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
It hasn't been updated since 1998 & it may no longer work at all, I don't
know.
>
This is way beyond the realm of ordinary AppleScripter. We really must
>
wait and hope for a developer to make those tools available or start
>
learning C and do it ourselves.
No doubt I'm missing something here and I only pose this hypothetically,
but what dialog could ever be inadvertently displayed by an applet where
all the executable code was within a try block in which errors were
handled in some other way?
Cheers,
Richard Morton
-- Great Lies of the Music Business: "It's the hottest pickup you can
get"