• 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: Software Installer – Finding the Local Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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

  • Follow-Ups:
    • Re: Software Installer – Finding the Local Application
      • From: Christopher Stone <email@hidden>
References: 
 >Software Installer – Finding the Local Application (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Applescript Editor → Script Editor
  • Next by Date: "check syntax"
  • Previous by thread: Software Installer – Finding the Local Application
  • Next by thread: Re: Software Installer – Finding the Local Application
  • Index(es):
    • Date
    • Thread