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 22:12:51 +0000
- Thread-topic: Auto mount .dmg in High Sierra? Possible??
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