2012-06-09 19:02:47 +00:00
|
|
|
on run
|
|
|
|
-- wait for virus scanner
|
|
|
|
delay 2
|
|
|
|
|
|
|
|
tell application "Finder"
|
|
|
|
tell disk "%s"
|
|
|
|
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 the bounds of container window to {400, 100, 1100, 500}
|
|
|
|
set theViewOptions to the icon view options of container window
|
|
|
|
set arrangement of theViewOptions to not arranged
|
|
|
|
set icon size of theViewOptions to 128
|
|
|
|
set background picture of theViewOptions to file ".background:installer-background.png"
|
|
|
|
set position of item "%s" of container window to {160, 200}
|
|
|
|
set position of item "Applications" of container window to {550, 200}
|
2012-12-01 13:23:08 +00:00
|
|
|
set position of item ".background" of container window to {100, 500}
|
|
|
|
set position of item ".DS_Store" of container window to {200, 500}
|
2012-06-09 19:02:47 +00:00
|
|
|
set position of item ".fseventsd" of container window to {300, 500}
|
2012-12-01 13:23:08 +00:00
|
|
|
set position of item ".Trashes" of container window to {400, 500}
|
|
|
|
set position of item ".VolumeIcon.icns" of container window to {500, 500}
|
2012-06-09 19:02:47 +00:00
|
|
|
open
|
|
|
|
close
|
|
|
|
update without registering applications
|
|
|
|
-- wait until the virus scan completes
|
|
|
|
delay 5
|
|
|
|
-- eject
|
|
|
|
end tell
|
|
|
|
end tell
|
|
|
|
end run
|