• 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
Encrypting A Sparse Bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encrypting A Sparse Bundle


  • Subject: Encrypting A Sparse Bundle
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 11 Dec 2011 12:12:28 -0600

My script, which I have used for a long while, creates a new encrypted sparse bundle disk image with this ...

if encrypt then
"hdiutil create -type SPARSEBUNDLE -megabytes " & imageSize & " -fs HFS+J -layout NONE " & imagePath & ¬
" -volname " & (quoted form of imageName) & " -attach -encryption"
...
do shell script the result


I have encountered a situation where I want to add encryption to an existing disk image file.
One way to do this would be to:
create a new, encrypted disk image,
then copy the data from the old to the new,
then replace the old file with the new one.

I have reviewed the 'hdiutil' man page for something simpler and more direct, but can't find anything that looks workable. Many of the verbs claim to be able to use the '-encryption' option, but error if you actually try to use it.

Does anyone with some experience with 'hdiutil' know another way to do this?

 _______________________________________________
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

  • Prev by Date: Re: Is dock visible
  • Next by Date: Re: Is dock visible
  • Previous by thread: Is dock visable [sic] [visible]
  • Next by thread: Acrobat Applescript Javascript Question
  • Index(es):
    • Date
    • Thread