• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Just curious
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Just curious (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: Execute script code in email body
  • Next by Date: Re: Mail Applescript Error in Mail 10.1.5 and not in 10.2?
  • Previous by thread: Re: Just curious
  • Next by thread: Number of days left in the month
  • Index(es):
    • Date
    • Thread