Re: Auto mount .dmg in High Sierra? Possible??
Re: Auto mount .dmg in High Sierra? Possible??
- Subject: Re: Auto mount .dmg in High Sierra? Possible??
- From: Paul Scott <email@hidden>
- Date: Thu, 22 Mar 2018 17:18:16 -0700
- Dkim-filter: OpenDKIM Filter v2.11.0 secure.paul-scott.us BB35640167
It would be helpful if you explained the purpose of this exercise. Are you
trying to create a distributable .dmg?
If so, it sounds like you want to do steps 1 through 4. Change step 5 to create
a compressed .dmg in Disk Utility (or use hdiutil to do that) of the mounted
disk image (covert) instead of creating a .zip file. The compressed .dmg should
approximate the size of a the .zip file.
When you double-click the compressed .dmg it will verify and mount it.
Of course, the mounted file system of the compressed .dmg will not be
writeable, but if this is a distribution, that’s probably what you want.
OTHO, If you want the original, writeable file system and this is not for
distribution to a foreign system, then you might have to look into leveraging
folder action to see if a .dmg file appears (and is completely written), and
then use hdiutil attach to mount it. What little I’ve done with folder action
has left a bad taste in my mouth — as has kevent (frightfully inadequate,
please Apple, fix this!) and launchd WatchPaths (self documented as unreliable)
— so I’ll leave it to someone else to explain a viable folder events solution.
Paul
> On Mar 22, 2018, at 4:48 PM, Brian Christmas <email@hidden> wrote:
>
> G’day again.
>
> This is exciting. So close, obviously.
>
> My present procedure is….
>
> 1. Create a 40 MB disk image using Disk Utility.
>
> 2. Set the background of the .open .dmg to a prepared image.
>
> 3. Drag in my .app, and size and position icon as required in .dmg. Remove
> sidebar etc. Close window.
>
> 4. Run the script.
>
> 5. Compress the hopefully altered .dmg.
>
> 6. Double click the compressed image.
>
> 7. It shows in the sidebar of a Finder Window, but does not mount the .dmg to
> show .dmg window, so fail.
>
> Is there anything wrong with this procedure, please?? Do I need the .dmg at
> root level before running the script??
>
> Regards
>
> Santa
_______________________________________________
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