
CHAPTER 3: File System Access Folder object 61
rename()
folderObj.rename (newName)
newName
The new folder name, with no path.
Renames the associated folder. Does not resolve aliases; instead, renames the referenced alias or
shortcut file itself.
Returns true on success.
resolve()
folderObj.resolve ()
If this object references an alias or shortcut, this method resolves that alias
Returns a new
Folder object that references the file-system element to which the alias resolves, or
null if this object does not reference an alias, or if the alias cannot be resolved.
selectDlg()
folderObj.selectDlg (prompt)
prompt
A string containing the prompt text, if the dialog allows a prompt.
Opens the built-in platform-specific file-browsing dialog, and creates a new
File or Folder object
for the selected file or folder. Differs from the class method
selectDialog() in that it preselects
this folder.
If the user clicks OK, returns a
File or Folder object for the selected file or folder. If the user
cancels, returns
null.
Kommentare zu diesen Handbüchern