file.getIconPos
| Syntax |
file.getIconPos (path, haddr, vaddr)
|
| Params |
path is a legal path name to the file or folder the position of whose icon you wish to determine. haddr is a variable or Object Database address into which the icon's horizontal position is to be placed. vaddr is a variable or Object Database address into which the icon's vertical position is to be placed.
|
| Action |
Determines the position of a file, folder's or disk volume's icon.
|
| Returns |
True if the icon is found, false otherwise. Places into haddr and vaddr the values denoting the horizontal and vertical coordinates, respectively, of the file or folder's icon.
|
| Examples |
file.getIconPos ("System:System Folder:Finder", @h, @v); return (h + ", " + v) » "192, 256"
|
| Notes |
A path can be the path to a file, a folder or a disk volume icon. The return value from this verb can be used to do such things as perform a custom cleanup of your desktop or a Finder folder window. If you use this verb on a file or folder whose icon is not visible (because, for example, the user has a list view selected in the Finder), file.getIconPos returns -1, -1.
|
| See Also |
file.setIconPos
|