EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 54

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 53
CHAPTER 3: File System Access File object 54
remove()
fileObj.remove ()
Deletes the file associated with this object from disk, immediately, without moving it to the system
trash. Does not resolve aliases; instead, deletes the referenced alias or shortcut file itself.
N
OTE: Cannot be undone. It is recommended that you prompt the user for permission before
deleting.
Returns true if the file is deleted successfully.
rename()
fileObj.rename (newName)
newName
The new file name, with no path.
Renames the associated file. Does not resolve aliases, but renames the referenced alias or shortcut
file itself.
Returns true on success.
resolve()
fileObj.resolve ()
If this object references an alias or shortcut, this method resolves that alias and returns a new File
object that references the file-system element to which the alias resolves.
Returns the new
File object, or null if this object does not reference an alias, or if the alias cannot
be resolved.
saveDlg()
fileObj.saveDlg ([prompt][,preset])
prompt
Optional. A string containing the prompt text, if the dialog allows a prompt.
preset
Optional, in Windows only. A filter that limits the types of files displayed in the
dialog. A filter expression, such as
"JavaScript:*.jsx;All files:*.*"
Not used in Mac OS.
Opens the built-in platform-specific file-browsing dialog, in which the user can select an existing file
location to which to save information, and creates a new
File object to represent the selected file.
Differs from the class method
saveDialog() in that it presets the current folder to this File objects
parent folder and the file to this object’s associated file.
If the user clicks OK, returns a
File object for the selected file. If the user cancels, returns null.
Seitenansicht 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare