Warning, /network/falkon/mac/create_dmg.scpt is written in an unsupported language. File is not indexed.

0001 tell application "Finder"
0002   tell disk "Falkon"
0003     open
0004       # Set some defaults
0005       set current view of container window to icon view
0006 
0007       # Turn some things off
0008       set statusbar visible of container window to false
0009       set toolbar visible of container window to false
0010 
0011       # Size metrics { x, y, w, h }
0012       set the bounds of container window to {40, 40, 520, 520}
0013 
0014       # Abstract an object
0015       set theViewOptions to the icon view options of container window
0016 
0017       # Turn some more things off
0018       set arrangement of theViewOptions to not arranged
0019 
0020       # Set background image in HFS+ format referenced from image bundle
0021       set background picture of theViewOptions to file ".background:dmg-background.png"
0022 
0023       # Align the icons to the background mask
0024       set icon size of theViewOptions to 64
0025 
0026       set position of item "Falkon" of container window to {55, 390}
0027       set position of item "Applications" of container window to {390, 390}
0028 
0029       # Since this is a dynamic template modifier script tell Finder not to do any registration of applications
0030       update without registering applications
0031 
0032       delay 5
0033 
0034     close
0035   end tell
0036 end tell