I use the following Applescript to configure .dmg folder options, icon spacing, etc:
on run argv tell application "Finder" set diskname to item 1 of argv tell disk diskname open set current view of container window to icon view set toolbar visible of container window to false set statusbar visible of container window to false set bounds of container window to {400, 100, 900, 699} set theViewOptions to the icon view options of container window set arrangement of theViewOptions to not arranged set icon size of theViewOptions to 100 set background picture of theViewOptions to file "background.png" set file_list to every file repeat with i in file_list if the name of i is "Applications" then set the position of i to {368, 135} else if the name of i ends with ".app" then set the position of i to {134, 135} end if
A properly configured window, with one exception: the image 500x600 background.png is reduced to about a third of its original size and placed in the upper left corner. I can not explain why this is happening. Any suggestions?
source share