If (Is macOS) $path:=Application file+Folder separator+"Contents"+Folder separator+"Resources"+Folder separator+"gram.4dsyntax" Else $path:=Path to object(Application file).parentFolder+"Resources"+Folder separator+"gram.4dsyntax" End if $lines:=Split string(Document to text($path);"\r") $commands:=New object For ($i;1;$lines.length) $command:=Command name($i) If ($command#"") & ($command#"_4D") $commands[String($i)]:=New object("name";$command;"count";0) End if End for ARRAY TEXT($command_names;0) OB GET PROPERTY NAMES($commands;$command_names) $total:=Size of array($command_names) METHOD GET PATHS(Path all objects;$methods) $token:="([[:letter:][_]][[:letter:][:number:][. _]]+(?