1 tell application "Finder"
   2   tell disk "DEPLOY_ACTUAL_VOLUME_NAME"
   3     open
   4     set current view of container window to icon view
   5     set toolbar visible of container window to false
   6     set statusbar visible of container window to false
   7 
   8     -- size of window should match size of background
   9     set the bounds of container window to {400, 100, 917, 380}
  10 
  11     set theViewOptions to the icon view options of container window
  12     set arrangement of theViewOptions to not arranged
  13     set icon size of theViewOptions to 128
  14     set background picture of theViewOptions to file ".background:background.png"
  15 
  16     -- Create alias for install location
  17     make new alias file at container window to DEPLOY_INSTALL_LOCATION with properties {name:"DEPLOY_INSTALL_NAME"}
  18 
  19     set allTheFiles to the name of every item of container window
  20     repeat with theFile in allTheFiles
  21       set theFilePath to POSIX Path of theFile
  22       if theFilePath is "/DEPLOY_APPLICATION_NAME.app"
  23         -- Position application location
  24         set position of item theFile of container window to {120, 60}
  25       else if theFilePath is "/DEPLOY_INSTALL_NAME"
  26         -- Position install location
  27         set position of item theFile of container window to {390, 60}
  28       else
  29         -- Move all other files far enough to be not visible if user has "show hidden files" option set
  30         set position of item theFile of container window to {1000, 0}
  31       end
  32     end repeat
  33 
  34     update without registering applications
  35     delay 5
  36     close
  37   end tell
  38 end tell