Finder.close
| Syntax |
Finder.close (referenceToWindows)
|
| Params |
referenceToWindows (under non-Scriptable Finder) is the path name of the folder whose Finder window you wish to close. Only one allowed. referenceToWindows (under Scriptable Finder) is an object specifier of a Finder window or of the object whose window is to be closed, or a list of such specifiers.
|
| Action |
Closes each Finder window mentioned or implied in referenceToWindows.
|
| Returns |
Non-Scriptable Finder: True Scriptable Finder: an object specifier for the window which was closed, or a list of such specifiers.
|
| Examples |
Finder.close ("System:") » true (non-Scriptable Finder) or the object specifier startupDisk.window or disk["System"].window Closes the window showing the contents of the disk volume "System."
Finder.close ( {window["Test"], disk["Vashon"].folder["Frontier 3.0"]} ) « requires Scriptable Finder, windows are open.
|
| Platform Notes |
This verb is only implemented in the Mac OS version of Frontier.
|
| Errors |
With the Scriptable Finder, it is an error to try to close a window which is not open.
|
| Notes |
If the Finder window at referenceToWindows is not open, the non-Scriptable Finder opens it and then closes it. The examples assume they are within a with objectModel, Finder
|
| See Also |
Finder.open
|