Re: Icon coordinates in Finder
Re: Icon coordinates in Finder
- Subject: Re: Icon coordinates in Finder
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 11 May 2005 20:09:42 +0200
Le 11 mai 2005 , à 19:43, Sung-Jin Lim a écrit :
Is there any way to ask Finder for the global screen coordinates (not
the local coordinates) of icon for a file or folder?
Hello
Maybe this may help:
property monFichier : "Macintosh HD:Users:yvankoenig:Desktop:documents
divers:for info.sit"
tell application "Finder"
set laFenetre to (container of file monFichier) as text
set Wpos to position of window of folder laFenetre
set Fpos to position of item monFichier
set Gpos to {(Wpos's item 1) + (Fpos's item 1), (Wpos's item 2) +
(Fpos's item 2)}
end tell -- Finder
Yvan KOENIG
_______________________________________________
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