Finder 'desktop position' bug
Finder 'desktop position' bug
- Subject: Finder 'desktop position' bug
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 6 Sep 2010 16:49:17 -0400
It is apparently well known that the Finder in Snow Leopard does not update a disk icon's 'desktop position' property when the user moves an icon manually. As a result, a script that tries to get the icon's current position is often wrong. In my script, an attempt to move a disk icon relative to its current position (when it was previously moved manually) always moves it relative to its last position set by the script, instead. Calling the 'update' command on the disk or the desktop doesn't help.
Does anybody know of a workaround? Using the shell, maybe?
Here's the script that doesn't work the way I want it to:
tell application "Finder"
set myID to id of first disk whose comment contains "MBP" -- tag
tell disk id myID
set startPosition to desktop position
set desktop position to {(item 1 of startPosition) + 10, item 2 of startPosition}
delay 0.1
set desktop position to startPosition
end tell
end tell
(That's part of a slightly longer script that jiggles the icon very nicely -- but only after moving it to the wrong place.)
--
Bill Cheeseman - email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden