Finder.putAway
| Syntax |
Finder.putAway (path)
|
| Params |
With original Finder: path is the path to a folder or file that has been previously moved to the desktop or into the Trash and which you now wish to return to its proper window and Finder location. With Scriptable Finder: path is a specifier for some object, or a suitable list.
|
| Action |
Moves the folder or file in path to the location from which it was previously moved. With Scriptable Finder, putAway can also be used to eject and unmount removeable volumes.
|
| Returns |
With the original Finder: true With the scriptable Finder: a specifier (or list) for the object(s) put away, in their new location.
|
| Examples |
Finder.putAway ("System:Desktop Folder:Temporary Folder:") » true
The folder "Temporary Folder" is restored to its original position at the top level of the disk volume "System." |
| Platform Notes |
This verb is only implemented in the Mac OS version of Frontier.
|
| Errors |
With Scriptable Finder, it is an error to put away something which does not exist as you specify it.
|
| Notes |
In the original Finder, executing Finder.putAway on an object that has not been dragged to the Macintosh desktop or the Trash has no effect and returns true. Scriptable Finder uses the desktop as the default container for objects...so most objects to be put away can be specified in the form file["foo"].
|