• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Auto mount .dmg in High Sierra? Possible??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 16:28:48 -0700
  • Dkim-filter: OpenDKIM Filter v2.11.0 secure.paul-scott.us F110840167

The term smart-quotes refers to the left- and right-leaning quotes (or
apostrophes) that are outside the normal ASCII range. A normal ASCII quote ha a
value of 0x22 and a normal ASCII apostrophe has a value of 0x27. Those are the
ones you need with “do shell script” otherwise you’ll run into problems.

Ed’s example AppleScript uses “quoted form of POSIX path of myFIle” which
surrounds the path with appropriate ASCII apostrophes (quoted form of) so that
you don’t have to worry about it.

Yes, what you have works. I even tested it against a .dmg file on my system,
which became suitably mounted.

Paul

> On Mar 22, 2018, at 4:16 PM, Brian Christmas <email@hidden> wrote:
>
> 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’"

 _______________________________________________
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

  • Follow-Ups:
    • Re: Auto mount .dmg in High Sierra? Possible??
      • From: Brian Christmas <email@hidden>
References: 
 >Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Paul Scott <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: "Stockly, Ed" <email@hidden>)
 >Re: Auto mount .dmg in High Sierra? Possible?? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Auto mount .dmg in High Sierra? Possible??
  • Next by Date: Re: Auto mount .dmg in High Sierra? Possible??
  • Previous by thread: Re: Auto mount .dmg in High Sierra? Possible??
  • Next by thread: Re: Auto mount .dmg in High Sierra? Possible??
  • Index(es):
    • Date
    • Thread