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: Brian Christmas <email@hidden>
- Date: Fri, 23 Mar 2018 11:25:21 +1100
Thanks Paul.
Yes!!! I’m trying to create a distributable, open-on-download version of my
.app, ‘Art Archiver’.
Spot on. Back to the man pages, thanks, but busy with something else in my life
ATM. Programming has become a third or more priority after 28 months of
programming excess. But many, many thanks. I’ve spent a lot of time researching
this, and nothing like your and Ed’s assistance is online. The help means I
sleep ok.
Regards
Santa
> On 23 Mar 2018, at 11:18 am, Paul Scott <email@hidden> wrote:
>
> 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
_______________________________________________
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