• 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
Mount With Password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mount With Password


  • Subject: Mount With Password
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 28 Mar 2010 16:05:50 -0500

I have created a sparsebundle image file encrypted with the password "abcd".
When I do this from the terminal ...

$ echo -n abcd | hdiutil attach -stdinpass /Users/lutherfuller/Desktop/PassWordTest.sparsebundle

The disk mounts correctly.

But, I want to do this from an AppleScript, so I do this ...

set imageAlias to alias "OS_X:Users:lutherfuller:Desktop:PassWordTest.sparsebundle"
quoted form of (POSIX path of imageAlias)
do shell script "echo -n abcd | hdiutil attach -stdinpass " & the result

The disk does not mount and I get "hdiutil: attach failed - Authentication error".
Anyone know why?

 _______________________________________________
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: Mount With Password
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Keychain Scripting question
  • Next by Date: Re: Mount With Password
  • Previous by thread: Re: protocol
  • Next by thread: Re: Mount With Password
  • Index(es):
    • Date
    • Thread