• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem updating disk icon position.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Problem updating disk icon position.
      • From: OzSanta <email@hidden>
  • Prev by Date: Re: localized string and 10.6
  • Next by Date: Re: Problem updating disk icon position.
  • Previous by thread: Re: Finder event question - scripting bridge, appscript [Solved]
  • Next by thread: Re: Problem updating disk icon position.
  • Index(es):
    • Date
    • Thread