Re: Have an app quit itself
Re: Have an app quit itself
- Subject: Re: Have an app quit itself
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 24 Jul 2002 11:23:58 -0700
On 7/24/02 10:42 AM, "g3pb@work" <email@hidden> wrote:
>
On 2002-07-24 09:22, "Timothy K. Wilkinson" <email@hidden> wrote:
>
>
> I'm using FaceSpan to have AppleScript mount some directories. I'd like to
>
> have the application quit if certain conditions are met. I don't want to
>
> refer to it by name, such as:
>
>
>
> Tell application "Home Directory"
>
> Quit
>
> End tell
>
>
>
> Is the syntax "Tell me to quit" acceptable in AppleScript?
>
>
Error number -128 -- causes current app to quit
Actually, it causes the script to quit, whether the script be an application
or a compiled script. If I am running a compiled script from the Entourage
script menu
error number -128
cases the script to quit, whereas
tell me to quit
causes Entourage itself, the application running the script, to quit (with
the usual routine asking me to save open windows, etc.)
In the case of a script applet that comes to the same thing, unless there's
an actual 'on quit' handler (which needs to have 'continue quit' after doing
whatever else you ask it to do).
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.