• 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: When is a disk image file encrypted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: When is a disk image file encrypted? (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Re1: Mail scripting : How to select… continuation...
  • Next by Date: Re: address book problem...
  • Previous by thread: Re: When is a disk image file encrypted?
  • Next by thread: Delete an application
  • Index(es):
    • Date
    • Thread