Script commands do not pass a return value. But script functions do. Some AE script functions, like CREATE_OBJECT
, pass a return code directly in the return value. Others, like PREP_PROCESS_FILENAME
, do not, and one must instead use SYS_LAST_ERR_NR
& SYS_LAST_ERR_INS
to read the return code.
Is there a list of script functions whose return code & message must be retrieved in this way? Or is there a way to tell from the documentation? Moreover, can these error handling functions also be used to return errors from script commands, or do they work only with script functions?