aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/installers/darwin/dmg-cleanup.applescript
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/installers/darwin/dmg-cleanup.applescript')
-rw-r--r--linden/indra/newview/installers/darwin/dmg-cleanup.applescript28
1 files changed, 28 insertions, 0 deletions
diff --git a/linden/indra/newview/installers/darwin/dmg-cleanup.applescript b/linden/indra/newview/installers/darwin/dmg-cleanup.applescript
new file mode 100644
index 0000000..f3d39ae
--- /dev/null
+++ b/linden/indra/newview/installers/darwin/dmg-cleanup.applescript
@@ -0,0 +1,28 @@
1-- First, convert the disk image to "read-write" format with Disk Utility or hdiutil
2-- Mount the image, open the disk image window in the Finder and make it frontmost, then run this script from inside Script Editor
3-- After running the script, unmount the disk image, re-mount it, and copy the .DS_Store file off from the command line.
4
5tell application "Finder"
6
7 set foo to every item in front window
8 repeat with i in foo
9 if the name of i is "Applications" then
10 set the position of i to {391, 165}
11 else if the name of i ends with ".app" then
12 set the position of i to {121, 166}
13 end if
14 end repeat
15
16 -- There doesn't seem to be a way to set the background picture with applescript, but all the saved .DS_Store files should already have that set correctly.
17
18 set foo to front window
19 set current view of foo to icon view
20 set toolbar visible of foo to false
21 set statusbar visible of foo to false
22 set the bounds of foo to {100, 100, 600, 399}
23
24 -- set the position of front window to {100, 100}
25 -- get {name, position} of every item of front window
26
27 get properties of front window
28end tell