Re: Just curious
Re: Just curious
- Subject: Re: Just curious
- From: Simon Kornblith <email@hidden>
- Date: Wed, 20 Nov 2002 18:03:14 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/20/02 3:44 PM, "Matthew Smith" <email@hidden> typed away on his
(or her or its) keyboard producing the following output:
>
AppleScript works by sending events to applications. The quit event must go
>
to an application. This means you cannot really run a script designed to be
>
an application from within the Script Editor, as the application will be the
>
Script Editor and not your script. When you want to use quit, you are
>
probably better off to write 'my quit' or 'tell me to quit, than 'tell
>
application "quitter" to quit. Me and my are words to refer to the current
>
target (application).
>
>
The only time you ever need to tell you script to quit is when it is a
>
stay-open application. You don't need to do it as a compiled script. It will
>
end once it gets to the end of the code. This is also true for non-stay-open
>
application scripts.
As long as you're in the main portion of the code (not in a subroutine or
handler), you can use "return" instead of "quit."
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)
Comment: EntourageGPG - <
http://entouragegpg.sf.net/>
iD8DBQE93BS7ZoUZrWul2vIRAtkxAJ4ga3SFazRa0Ggj91GsZrlRwvODRgCgtJ5s
OaRoOp/cPwHk7Q5NA04K8go=
=U5n0
-----END PGP SIGNATURE-----
_______________________________________________
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.