Re: When is a disk image file encrypted?
Re: When is a disk image file encrypted?
- Subject: Re: When is a disk image file encrypted?
- From: Luther Fuller <email@hidden>
- Date: Mon, 19 May 2008 10:49:22 -0500
Yesterday, I offered this handler to determine if a disk image file is
encrypted.
on isEncrypted(imageAlias)
quoted form of (POSIX path of imageAlias)
try
do shell script " hdiutil imageinfo " & the result & " -stdinpass"
on error
return true
end try
return false
end isEncrypted
The password dialog DOES NOT appear!
I think it works because '-stdinpass' passes an incorrect (null ?)
password to the disk image file. But, I'm not a Unix expert, and it's
not clear to me exactly why this handler works. I know that ...
-stdinpass read a null-terminated passphrase from standard input.
But, I'm not sure exactly what that means. I need to know that this
handler will always use an incorrect password (= null). I think I need
to tweak the 'do shell script ...' line just a bit. Who knows what I
need?
_______________________________________________
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