Re: Load Script
Re: Load Script
- Subject: Re: Load Script
- From: Cameron Knowlton <email@hidden>
- Date: Sat, 28 May 2011 13:13:08 -0700
I learn SOOO much from you guys! Thanks everyone.
Cam
At 9:04 PM +0100 11/05/28, Nigel Garvey wrote:
>Hi, Axel and Luther.
>
>I haven't been following the thread very closely, but I've just noticed this:
>
>> (((path to me) as text) & "Contents:Resources:MenuItemScripts:" & AppName
>>& ".scpt") as alias
>
>A bit of geekery if you're interested.
>
>(path to me as text) is more efficient than ((path to me) as text). In
>the first case, the text is returned directly by 'path to', 'as' being a
>'path to' parameter. In the second, 'path to' returns an alias, which is
>then coerced to text by AppleScript.
>
>Even better for your purposes may be:
>
> path to resource (AppName & ".scpt")
>
>or:
>
> path to resource (AppName & ".scpt") in directory "MenuItemScripts"
>
>
>NG
--
Cameron Knowlton
KnowledgeVine SEO Dashboards
email@hidden
P: 250.382.0226
http://www.knowledgevine.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden