Re: launch broken in Mt Lion
Re: launch broken in Mt Lion
- Subject: Re: launch broken in Mt Lion
- From: Shane Stanley <email@hidden>
- Date: Tue, 15 Jan 2013 08:56:18 +1100
On 15/01/2013, at 8:13 AM, Luther Fuller <email@hidden> wrote:
> The handler someMenuItemHandler() calls other handlers which contain the line …
>
> set selfRef to (path to me)
>
> but this returns the correct path only if 'me' refers to the hostAppl. But in the script, above, the host code has been moved into menuItem.app and now returns the wrong path. Unfortunately, someMenuItemHandler must also work when called by Main.app, so I can't modify the code in Main.app.
Can you not pass the path as an argument to someMenuItemHandler()?
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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