edit_file

edit_file — opens a file in the Script Editor.

Syntax

edit_file (filename)
    

Arguments

filename

The name of the file you wish to edit, as a string.

Returns

t on success, otherwise an error message.

Description

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.