Re: Icon coordinates in Finder
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