System and File Functions with User Controlled Security
These functions are controlled on the Edit/Preferences Menu
Read and Write outside a script's own (sub)-directory tree, active document, and master document (if being used) must be turned on first by the User.
There are functions for testing current settings to establish whether the User has enabled the necessary permissions already, and for presenting the permissions dialogue for the User to take any enabling action.
Once the User has turned any Read or Write functions on or off, the setting is maintained between sessions until explicitly altered by the User.
Use with care a write or system call could damage a User's system.
For current document's (being edited) path and file name see TW.target.fileName
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator