Tiger: determining if a script is being run as an application
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