I have one startup script. It runs on the "mytarget" target engine and setups ups some custom menu items and actions to indesign which call some other custom scripts. Now when I launch Indesign and click on the menu; the custom script get execute but it behaves differently from same script executed with ExtendScript Toolkit.
In specific, I have used the 'paragraph.spanColumnType' property in my custom script. When I run this script directly with ExtendScript Toolkit, it works fine. but when I use menu item(added by startupscript) to call this script; it gives me an error -
Object does not support the property or method 'spanColumnType'.