Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Encrypt a folder through applescript or terminal

Hey All,

im wokring on an applescript and it makes a large number of folders in a specific hierarchy.

is there a way to password protect one or more of those folders without the script opening the disk utility app to create the image?


Thanks

Applescript-OTHER, Mac OS X (10.7.4)

Posted on Aug 31, 2012 9:01 AM

Reply
Question marked as Best reply

Posted on Aug 31, 2012 9:49 AM

I assume you mean that you want to create a secure disk image (folders themselves cannot be encrypted, and you did mention disk utility). If so there's a command line utility called hdiutil that will let you create and encrypt disk images; you can call it from do shell script. If you read man hdiutil they give usage examples. If you give more details we can show you the right code.

2 replies
Question marked as Best reply

Aug 31, 2012 9:49 AM in response to b3nnb

I assume you mean that you want to create a secure disk image (folders themselves cannot be encrypted, and you did mention disk utility). If so there's a command line utility called hdiutil that will let you create and encrypt disk images; you can call it from do shell script. If you read man hdiutil they give usage examples. If you give more details we can show you the right code.

Encrypt a folder through applescript or terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.