• 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: Auto mount .dmg in High Sierra? Possible??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto mount .dmg in High Sierra? Possible??


  • Subject: Re: Auto mount .dmg in High Sierra? Possible??
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 24 Mar 2018 10:50:44 +1100

Thanks Paul

However, I’m now confused.

The  hdiutil man pages explicitly seem to say to NOT DETACH AN ACTION, but to
unmount a drive, the user should explicitly use the unmount command.

Should I use….


set shellScript to "hdiutil attach -verify -autofsck -mount required " & myPath

set tempAction to do shell script shellScript

do shell script "hdiutil unmount “ & tempAction


Very hard to test if action is attached or not?

Regards

Santa


> On 24 Mar 2018, at 10:36 am, Paul Scott <email@hidden> wrote:
>
> BTW, you can also use the device name on detach, which might be preferable if
> the mounted name got munged because of an existing mount of the same name.
>
> The device name and mount path are returned on the output of the hdiutil
> attach command.
>
> E.g., if hdiutil attach returns:
> /dev/disk6              Apple_partition_scheme
> /dev/disk6s1            Apple_partition_map
> /dev/disk6s2            Apple_HFS                       /Volumes/MyFileSystem
> then you would use ONE of:
> hdiutil detach /dev/disk6
> hdiutil detach /Volumes/MyFIleSystem
> Paul
>
> On 3/23/2018 4:24 PM, Paul Scott wrote:
>> try:
>>
>> hdiutil detach /Volumes/path_to_mounted_filesystem
>>
>>
>> On 3/23/2018 4:15 PM, Brian Christmas wrote:
>>> G’day
>>>
>>> Would have helped if I'd used -format and not commented out the relevant
>>> line.
>>>
>>> However, this routine is far more versatile, but it turns out I need to
>>> unmount the drive before trying to compress it. I cannot get the format
>>> correct though, for….
>>>
>>> set shellScriptTwo to (("hdiutil unmount " as text) & myPath)
> _______________________________________________
> 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

 _______________________________________________
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: Auto mount .dmg in High Sierra? Possible??
      • From: Paul Scott <email@hidden>
References: 
 >Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: "Stockly, Ed" <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)

  • Prev by Date: Re: Auto mount .dmg in High Sierra? Possible??
  • Next by Date: Re: Auto mount .dmg in High Sierra? Possible??
  • Previous by thread: Re: Auto mount .dmg in High Sierra? Possible??
  • Next by thread: Re: Auto mount .dmg in High Sierra? Possible??
  • Index(es):
    • Date
    • Thread