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: "Stockly, Ed" <email@hidden>
- Date: Thu, 22 Mar 2018 23:28:38 +0000
- Thread-topic: Auto mount .dmg in High Sierra? Possible??
I think using "quoted form of " negates the need for quotes and eliminates the
potential for smart quotes screwing things up
From: Brian Christmas <email@hidden<mailto:email@hidden>>
Date: Thursday, March 22, 2018 at 3:16 PM
To: Los Angeles Times Los Angeles Times
<email@hidden<mailto:email@hidden>>, Paul Scott
<email@hidden<mailto:email@hidden>>, AppleScript Digest
<email@hidden<mailto:email@hidden>>
Subject: Re: Auto mount .dmg in High Sierra? Possible??
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
setmyFileto (choose file) as alias
setmyPathto quoted formof POSIX pathof myFile
setshellScriptto "hdiutil attach -noverify -noautofsck -mount required " &
myPath
do shell scriptshellScript
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<mailto:email@hidden>> wrote:
I'd try something like this:
set myFile to (choose file) as alias
set myPathto 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