Re: AppleScript Studio and package contents
Re: AppleScript Studio and package contents
- Subject: Re: AppleScript Studio and package contents
- From: bill fancher <email@hidden>
- Date: Fri, 18 Oct 2002 07:50:32 -0700
On Thursday, October 17, 2002, at 11:48 PM, Rob Jorgensen wrote:
At 8:37 PM +0200 10/17/02, Emmanuel wrote:
At 2:09 PM -0400 17/10/02, Rob Jorgensen wrote:
If one explores the contents of a package and AppleScript scripts
are present within, is it safe to assume that it's a Studio app, or
are there other entities that might incorporate scripts (other than
installers)?
I don't think so.
(Smile 2.4.7 - not public yet - includes AppleScripts in its package.)
I should have been more specific and asked "If a package includes
project files and scripts is it safe to assume...bla bla bla." I'm
really just looking for a foolproof way to identify an AppleScript
Studio app. :-)
Any project that uses the Project Builder mechanism for adding scripts
to an app will produce scripts with a "ASDScriptUniqueIdentifier"
property:
property ASDScriptUniqueIdentifier : "theScriptName.applescript"
You could check the scripts you find for that property:
try
get ASDScriptUniqueIdentifier of loadedScript
on error
-- not an AS Studio app
end
I assume the property is used by the debugger, but it seems to get left
in even on installation builds. There might be a way to turn it off,
but I haven't been able to find it.
HTH,
--
bill
_______________________________________________
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.