Mac Help Forums


Reply
Thread Tools Display Modes

Position of Icons in a DMG file

 
New Member
Join Date: Nov 2008
Posts: 1
 
      9th November 2008
I have the following script that customizes a DMG....
The problem is ... contrary to what the script says.... The icons are NOT located at the coordinates specified. The ones that would be along the top
are "close".. the lower/right icons are way off. I also notice that if I change the X/Y of the window in the script the position of the icons change.

What am I doing wrong/missing here? I need to have the icons appear at the specified coordinates relative to the top left corner of the window

Code:
 
tell application "Finder"
tell disk "test_test.dmg"
   open
   tell container window
      set current view to icon view
      set toolbar visible to false
      set statusbar visible to false
      set x to 251
      set y to 220
      set w to 1009
      set h to 612
      set bounds to {x, y, x + w, y + h}
   end tell
   set opts to icon view options of container window
   tell opts
      set shows icon preview to false
      set shows item info to false
      set icon size to 128
      set text size to 16
      set arrangement to not arranged
      set label position to bottom
      set background color to {32639,0,32639}
   end tell
   set position of file "aaa_test01.app" to {25,96}  
   set position of file "aaa_test02.app" to {803,213}
   set position of file "aaa_test03.app" to {585,68}
   set position of file "aaa_test04.app" to {485,388}
   set position of file "aaa_test05.app" to {52,295}
   set position of file "aaa_test06.app" to {792,30}
   set position of file "aaa_test07.app" to {211,51}
   set position of file "aaa_test08.app" to {439,207}
   set position of file "aaa_test09.app" to {823,406}
   set position of file "aaa_test10.app" to {293,391}
   set position of file "aaa_test11.app" to {381,13}
   set position of file "aaa_test12.app" to {214,226}
   set position of file "aaa_test13.app" to {649,443}
   update without registering applications
   delay 5
end tell
end tell
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to remember playback position of an AVI file? spencer UK Macs 5 6th January 2009 12:23 AM
Way to remember playback position of an AVI file? spencer Misc 5 6th January 2009 12:23 AM
Position of icons on desktop Ockham's Razor Apps 5 31st May 2007 10:55 PM
Volume icons change position on desktop Peter Gorny Misc 1 9th April 2005 07:06 PM
Volume icons change position on desktop Peter Gorny Misc 0 6th April 2005 05:24 PM


All times are GMT +1. The time now is 05:09 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (8 Hours Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (11 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (12 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (13 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (13 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51