Finder.changeView
| Syntax |
Finder.changeView (pathToFolder, viewID)
|
| Params |
pathToFolder is the path name of the folder whose Finder window view you wish to set. viewID is a number between 0 and 8 that determines the viewing method for files and folders in the window at pathToFolder.
|
| Action |
Sets the viewing method of the Finder window pathToFolder to a view that depends on the value of viewID, which can have the following values. 0 = Small Icon 1 = Icon 2 = Name 3 = Date Last Modified 4 = Size 5 = Kind 6 = Comments 7 = Label 8 = Version
|
| Returns |
True
|
| Examples |
Finder.changeView ("System:", 4) » true
All files and folders in the disk icon's window are shown in order by size.
All files and folders in this folder are now shown in order by version number. |
| Platform Notes |
This verb is only implemented in the Mac OS version of Frontier.
|
| Notes |
Supplying a number outside the range of 0-8 has no effect on the view and returns true. If the window at pathToFolder is not open, this verb opens it before changing its view. You can use this verb to select a view that is not available on the Finder's View menu. With Scriptable Finder, consider setting the "view" property of the folder (using the same values as above)
|
| See Also |
"Finder.set"
|