Changing how temporary script files are named
I'll just use CFByteOrder instead of a custom type
Don't mark document state when activiating a script
Stop running scripts before reverting to another document version