Re: Finder 'desktop position' bug
Re: Finder 'desktop position' bug
- Subject: Re: Finder 'desktop position' bug
- From: Philip Aker <email@hidden>
- Date: Tue, 14 Sep 2010 07:50:25 -0700
On 2010-09-06, at 13:49:17, Bill Cheeseman wrote:
> 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.
Well, it seems to me that it's not the same Finder we knew only a few years ago. A lot of what used to be it's direct responsibility is now done by various framework calls and these don't have the finesse or capablities of what the old Finder had developed over the course of 20+ years. For instance, if I leave a folder open on my desktop whose location on a different partition than the startup volume, then half the time it never shows up on a restart. Then there's the irksome problem of the new bookmarks not remembering my folder settings (such as whether or not the toolbar is shown or even sometimes, whether or not I've selected list view or icon view).
Sympathy, but sorry, no solution.
> 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.)
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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