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 10:16:52 +1100
G’day Paul & Ed
Thank you for the suggestions to both, but especially for the code, Ed.
My altered-as-per-script .dmg, which I then compress, does NOT auto mount on
decompression!
Paul, I’ve read the man pages, but I noticed your footnote about smart quotes.
Not sure what that means? Is my altered-from-Eds code OK please?
Regards
Santa
set myFile to (choose file) as alias
set myPath to quoted form of POSIX path of myFile
set shellScript to "hdiutil attach -noverify -noautofsck -mount required " &
myPath
do shell script shellScript
shellScript
--> "hdiutil attach -noverify -noautofsck -mount required
'/Users/OzSanta/Documents/My XCode Projects/AA Sierra Public/Web Site stuff/Art
Archiver.dmg’"
> On 23 Mar 2018, at 9:12 am, Stockly, Ed <email@hidden> wrote:
>
>
> I'd try something like this:
>
> set myFile to (choose file) as alias
> set myPath to quoted form of POSIX path of myFile
>
> set shellScript to "hdiutil attach -noverify -noautofsck " & myPath
>
> do shell script shellScript
>
>
>
>
> From: AppleScript-Users
> <applescript-users-bounces+ed.stockly=email@hidden
> <mailto:applescript-users-bounces+ed.stockly=email@hidden>> on
> behalf of Paul Scott <email@hidden <mailto:email@hidden>>
> Date: Thursday, March 22, 2018 at 11:33 AM
> To: Brian Christmas <email@hidden <mailto:email@hidden>>
> Cc: AppleScript Digest <email@hidden
> <mailto:email@hidden>>
> Subject: Re: Auto mount .dmg in High Sierra? Possible??
>
>> You may need to include a path to the archive. Also, since the file name
>> must be quoted (contains a blank) beware not to use smart quotes or
>> apostrophes. Use an ASCII apostrophe.
_______________________________________________
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