C-Command Software Forum

Applescript exampe for DMG creation with configurations

I’m new to Applescript (and programming in general) and wondered if you could provide an example of an Applescript using a pre-determined configuration file. I saw the example in the manual but it doesn’t give the syntax for using a configuration.
An example of using a configuration called Password Protected DMG with DropDMG and Applescript would be nice.


The manual does have an example using a configuration name. The syntax is:

create image from path p configuration name "Password Protected DMG"

With DropDMG 3.0 this would be:

create image from POSIX file p configuration name "Password Protected DMG"