Problem updating disk icon position.
Problem updating disk icon position.
- Subject: Problem updating disk icon position.
- From: OzSanta <email@hidden>
- Date: Sat, 22 Jan 2011 10:07:10 +1100
G'day
Problem : I'm trying to update an applescript that automatically arranges icons.
Works fine for desktop icons EXCEPT those that are disk icons (kind = Volume ). These can be moved, but the positions (desktop position) stay the same even when re-moved manually.
eg. run the following script with the last line uncommented and a single desktop disk icon selected. Then move the disk icon to a new position. Comment out the line, and re-run with the same icon selected. The desktop position still shows as {600,100} even tho you've shifted the icon.
I've used several methods to refresh to desktop; none work to refresh the disk icon position.
Any advice please?
Regards
Santa
tell application "Finder" set ptd to path to desktop delete (make new folder at ptd) update desktop update (item 1 of (selection as alias as list)) properties of (item 1 of (selection as alias as list)) --set desktop position of (item 1 of (selection as list)) to {600, 100} end tell
|
_______________________________________________
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