]> git.sesse.net Git - vlc/blob - extras/package/macosx/dmg_setup.scpt
macosx: fix size, position and style of dark detached window close/min/max buttons...
[vlc] / extras / package / macosx / dmg_setup.scpt
1 on run argv
2     tell application "Finder"
3         tell disk (item 1 of argv)
4             open
5             set current view of container window to icon view
6             set toolbar visible of container window to false
7             set statusbar visible of container window to false
8             set the bounds of container window to {300, 100, 750, 500}
9             set theViewOptions to the icon view options of container window
10             set arrangement of theViewOptions to not arranged
11             set icon size of theViewOptions to 104
12             # Don't set a background image, for now
13             # set background picture of theViewOptions to file ".background/background.png"
14             set position of item "VLC.app" of container window to {110, 100}
15             set position of item "Applications" of container window to {335, 100}
16             set position of item "Read Me.rtf" of container window to {110, 275}
17             set position of item "Goodies" of container window to {335, 275}
18             # Force saving changes to the disk by closing and opening the window
19             close
20             open
21             update without registering applications
22             delay 5
23         end tell
24     end tell
25 end run