Finder.setPosition
| Syntax |
Finder.setPosition (pathToFolder, horiz, vert)
|
| Params |
pathToFolder is the path name of the folder whose Finder window you wish to move. horiz is a number indicating the horizontal location in pixels where you want the window's upper left corner located. vert is a number indicating the vertical location in pixels where you want the window's upper left corner located.
|
| Action |
Moves the window associated with the folder at pathToFolder so that its upper left corner is horiz pixels to the right of the left edge of the display and vert pixels below the top edge of the display.
|
| Returns |
True
|
| Examples |
Finder.setPosition ("System:", 5, 40) » true
This script opens the Finder window on the volume "System" and positions it so that its upper left corner is near the upper left corner of the screen. |
| Notes |
With the Scriptable Finder, suggest Finder.set (window["foo"].postion, {h, v}) {or set the window's bounds to move and resize}. Unlike its manual equivalent in the Finder, it is possible with this verb to move the window completely off the screen. You must be careful not to permit this, nor to make the title bar inaccessible without being aware of the situation and correcting it If the window for pathToFolder is not open when this verb is called, it will be opened by the Finder.
|
| See Also |
Finder.grow "Finder.set"
|