• 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
Re: Icon coordinates in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon coordinates in Finder


  • Subject: Re: Icon coordinates in Finder
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 11 May 2005 11:08:10 -0700


On May 11, 2005, at 10:43 AM, Sung-Jin Lim wrote:

Is there any way to ask Finder for the global screen coordinates (not the local coordinates) of icon for a file or folder?

If the icon is on the desktop then "desktop position" will give it to you.


If it's in a window, then I believe you can calculate it from the upper-left corner of the window (which can be extracted from its bounds) and the position of the icon within the window.

Interesting factiods:

For an icon within a window, "desktop position" is always undefined value

For an icon on the desktop, "position" is always {-1,-1} and "bounds" are always {-31,-31,33,33}

--
"The optimist proclaims that this is the best of all possible worlds ;
and the pessimist fears this is true."  --James Branch Cabell

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Icon coordinates in Finder
      • From: Mr Tea <email@hidden>
References: 
 >Icon coordinates in Finder (From: Sung-Jin Lim <email@hidden>)

  • Prev by Date: Icon coordinates in Finder
  • Next by Date: Re: Icon coordinates in Finder
  • Previous by thread: Icon coordinates in Finder
  • Next by thread: Re: Icon coordinates in Finder
  • Index(es):
    • Date
    • Thread