• 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
Tiger: determining if a script is being run as an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tiger: determining if a script is being run as an application


  • Subject: Tiger: determining if a script is being run as an application
  • From: Stephen Jonke <email@hidden>
  • Date: Sun, 5 Jun 2005 21:42:53 -0400

Under Tiger, the following works when the script is run in script editor (returning the result "script") but produces an error if run as an application:

  class of me

while the following does work, it always returns "script" as the class, even if run as an application:

    class of parent of me

Now, and this is really weird, the following returns "application" when run in script editor or via FastScripts, but returns "script" when run as an application:

  class of parent of parent of me

Can anyone explain this weirdness? Better, is there some reliable and unlikely to change way to determine if your script is being run as as script application or not?

Steve

_________________________________________________________________
Stephen Jonke                                  email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Tiger: determining if a script is being run as an application
      • From: kai <email@hidden>
  • Prev by Date: Re: URL wrapping [was: Re: Change Character]
  • Next by Date: Running an installer program from a script
  • Previous by thread: Re: URL wrapping [was: Re: Change Character]
  • Next by thread: Re: Tiger: determining if a script is being run as an application
  • Index(es):
    • Date
    • Thread