Re: ASObjC Runner, embedded in app bundle
Re: ASObjC Runner, embedded in app bundle
- Subject: Re: ASObjC Runner, embedded in app bundle
- From: Shane Stanley <email@hidden>
- Date: Wed, 17 Dec 2014 09:36:14 +1100
On 17 Dec 2014, at 6:28 am, Jim Weisbin <email@hidden> wrote:
>
> Is there a better way to do it?
That should be fine. Using 'path to resource "ASObjC Runner.app"' will save you a bit of typing.
You can also do this:
using terms from application "ASObjC Runner" -- needed to compile script
property runnerPath : ""
set runnerPath to (path to resource "ASObjC Runner.app") as text
tell application runnerPath
-- do your stuff
end tell
end using terms from
Making it a property means you can use runnerPath in handlers.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden