edit_fileedit_file — opens a file in the Script Editor.
edit_file (filename)
filenameThe name of the file you wish to edit, as a string.
t on
success, otherwise an error message.
This function opens the Script Editor and loads a requested file. If the requested file cannot be found, it creates a new file with the requested name.