Mount With Password
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