Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Icon Placement

Icon Placement
Thread Tools
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status: Offline
Reply With Quote
Sep 10, 2000, 02:32 AM
 
I have my 30G hard drive partitioned seven ways, but for some reason, when my computer starts up, they come up in a seemingly random order. I know that I once wrote an AppleScript to fix this problem automatically (I've long since lost it; it wasn't even on this HD), but I can't seem to duplicate it. Here's some of the things I've already tried:

set position of startup disk to {1219, 28}
This returns: "Finder got an error: This window is the wrong kind (e.g. pop-up vs. normal) to use this command"

set position of icon of startup disk to {1219, 28}
This returns: "Finder got an error: Can't set position of icon of startup disk to {1219, 28}."

set location of startup disk to {1219, 28}
This returns: "Finder got an error: Can't set location of startup disk to {1219, 28}."

set location of icon of startup disk to {1219, 28}
This returns: "Finder got an error: Can't set location of icon of startup disk to {1219, 28}."

move startup disk to {1219, 28}
This returns: "Finder got an error: Invalid key form."

move icon of startup disk to {1219, 28}
This returns: "Finder got an error: Invalid key form."

(Changing "startup disk" to 'disk "Mac OS 9.0.4"' doesn't help anything.)

Any ideas?!?
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
     
Blobby
Guest
Status:
Reply With Quote
Sep 10, 2000, 05:48 PM
 
try

select disk "blah"
set position of selection to {1219, 28}

Recording it should reveal the required syntax
     
John Rethorst
Guest
Status:
Reply With Quote
Sep 11, 2000, 12:13 AM
 
If you've set the Finder to snap icons into place, you need something like this wrap for your script:

--put this at the top of the script
set viewVar to (spatial view arrangement of desktop)
set spatial view arrangement of desktop to not arranged

--your stuff

--put this near the bottom of the script
set spatial view arrangement of desktop to viewVar
     
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status: Offline
Reply With Quote
Sep 11, 2000, 08:15 AM
 
Recording it doesn't work. (That was the first thing I tried.) It records, but it won't play back correctly. I did, however, finally figure it out:

select disk "blah"
move selection to desktop positioned at {1219, 28}

Thanks again for your help!
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 08:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2