Re: Tell Launcher to quit
Re: Tell Launcher to quit
- Subject: Re: Tell Launcher to quit
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 24 Dec 2000 13:09:43 -0800
On 12/24/00 12:53 PM, "Bryan" <email@hidden> wrote:
>
--Toggle Launcher
>
>
--turns Launcher ON if not running and OFF if already running.
>
>
--requires 'Sandi's Additons' and 'Akua' OSAXen
>
>
set mylauncher to (((path to control panels) as text) & "Launcher")
>
if "Launcher" is in (all processes) then
>
tell application "Finder" to open file mylauncher
>
TypeText "q" with Command
>
else
>
tell application "Finder" to open file mylauncher
>
end if
Yes, Michelle Steiner already pointed that out two days ago. Your version
uses Sandi's Additions (you should probably say so?) while Michelle stuck
with the Sigma's Additions version with which I had tried with closed the
window which someone had suggested earlier as a solution (but which doesn't
work in OS 9). So this works too:
type text "q" holding down command -- Sigma's Additions
as Michelle said. Thanks for putting it all together in one script, which
also needs Akua Sweets for 'all processes'.
Interestingly, Akua's 'puppet menu' while in the Finder:
puppet menu {"File", "Quit"}
doesn't work here ("user interaction not allowed"), I guess because you
can't actually activate the application (since Launcher isn't an
application) and the Finder is no longer the prevailing application for the
Launcher in OS 9, as Chris Nebel just explained.
--
Paul Berkowitz