Two problems with a script in the local help file on page:
Scripting > Example Scripts > Adding a new Internal Command
-
If you copy the example script, when you paste it a lot of the newlines are gone (replaced by 4 spaces):
(It copies correctly when copied from the online help) -
The script errors-out on line 56:
If (a.modify < b.modify)
The error:
Object expected (0x800a138f)