File Functions, Procedures and Properties

Parent Previous Next

File Functions, Procedures and Properties are distributed across the Api tree.



Top level

__FILE__  script file path and name



TW (normally requiring a prior security setting by  the User in Edit/Preferences/Script)—

File Functions

.readFile()

.writeFile()

.launchFile(QString)

.launchFile(QString,bool)

TW.app.openFileFromScript(QString,TW,int,bool)


Return Values for Status


TW.app (not specific to the current document)

Files

.getOpenFileName()

.getOpenFileName(QString)

.getOpenFileNames()

.getOpenFileNames(QString)

.getSaveFileName(QString)

.newFile()

.open()

.openFile(QString,int)

.recentFileActionsChanged()

.updateRecentFileActions()


TW.target (current editing document)

File Related

.fileName

.newFile()

.newFromTemplate()

.open()

.removeAuxFiles()

.revert()

.save()

.saveAll() (all documents)

.saveAs()

.windowFilePath


















Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents