• 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
Re: ASObjC Runner, embedded in app bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >ASObjC Runner, embedded in app bundle (From: Jim Weisbin <email@hidden>)

  • Prev by Date: Re: Why O why is speech needed?
  • Next by Date: Why won't this call a method in AppDelegate?
  • Previous by thread: ASObjC Runner, embedded in app bundle
  • Next by thread: Why won't this call a method in AppDelegate?
  • Index(es):
    • Date
    • Thread