Modifying DMG view settings

Hi there, thanks in advance for your help.

I am currently using Apple script GUI scripting to format a 'DMG installer' - placing icons and setting a background, etc. I understand this information is stored in the DS_Store file, so it occurred to me that it would make sense to just edit that file directly. Does Mac provide an API to modify DS_Store files?

Does Mac provide an API to modify .DS_Store files?

No. Those files are considered to be ‘owned’ by the Finder. The only supported way to manipulate them is with Finder scripting.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Modifying DMG view settings
 
 
Q