Re: Software Installer – Finding the Local Application
Re: Software Installer – Finding the Local Application
- Subject: Re: Software Installer – Finding the Local Application
- From: Shane Stanley <email@hidden>
- Date: Wed, 29 Mar 2017 21:47:32 +1100
On 29 Mar 2017, at 8:00 pm, Christopher Stone <email@hidden> wrote:
Shane – can AppleScriptObjC substitute for the hdiutil in mounting the disk AND saying “yes” to any licensing?
No -- you'll need to use hdiutil.
With your existing code, once you have the name or path of the app (or an NSURL), you should be able to do the rest more simply:
-- assume theApp = NSURL or NSString containing path set ws to current application's NSWorkspace's sharedWorkspace() set appPath to ws's fullPathForApplication:(theApp's lastPathComponent()) ws's activateFileViewerSelectingURLs:{current application's NSURL's fileURLWithPath:appPath}
Assuming only one copy of the app. |
_______________________________________________
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