summaryrefslogtreecommitdiff
path: root/indra/newview/installers/darwin
diff options
context:
space:
mode:
authorMonroe Williams <monroe@lindenlab.com>2009-02-27 21:01:19 +0000
committerMonroe Williams <monroe@lindenlab.com>2009-02-27 21:01:19 +0000
commitdd437009e88954fd0fe9dd95b903dbd1ea52e901 (patch)
tree5f5cb97ebc5dc4ca3bdbe2867a897e625c54a011 /indra/newview/installers/darwin
parent0bd557510a20565a4f27318f86dd11dac88ff574 (diff)
svn merge -r 113014:113017 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge-QAR-1323
Merging in QAR-1323.
Diffstat (limited to 'indra/newview/installers/darwin')
-rw-r--r--indra/newview/installers/darwin/dmg-cleanup.applescript28
1 files changed, 28 insertions, 0 deletions
diff --git a/indra/newview/installers/darwin/dmg-cleanup.applescript b/indra/newview/installers/darwin/dmg-cleanup.applescript
new file mode 100644
index 0000000000..f3d39aec21
--- /dev/null
+++ b/indra/newview/installers/darwin/dmg-cleanup.applescript
@@ -0,0 +1,28 @@
+-- First, convert the disk image to "read-write" format with Disk Utility or hdiutil
+-- Mount the image, open the disk image window in the Finder and make it frontmost, then run this script from inside Script Editor
+-- After running the script, unmount the disk image, re-mount it, and copy the .DS_Store file off from the command line.
+
+tell application "Finder"
+
+ set foo to every item in front window
+ repeat with i in foo
+ if the name of i is "Applications" then
+ set the position of i to {391, 165}
+ else if the name of i ends with ".app" then
+ set the position of i to {121, 166}
+ end if
+ end repeat
+
+ -- 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.
+
+ set foo to front window
+ set current view of foo to icon view
+ set toolbar visible of foo to false
+ set statusbar visible of foo to false
+ set the bounds of foo to {100, 100, 600, 399}
+
+ -- set the position of front window to {100, 100}
+ -- get {name, position} of every item of front window
+
+ get properties of front window
+end tell