Initiating a script from a created menu
ok,
i admit novice javascript, although have experience developing using xcode objc , lots of interapplication scripting applescript.
however, missing basic concepts trying simple things script adobe bridge.
for instance, have followed tutorials , have had no problem running , customizing versions of snpaddmenuitem.jsx , snpcreatethumbnailinspector.jsx.
now, let's put snpaddmenuitem.jsx in startup scripts folder bridge cs6. (works fine , creates menu on launch.)
however, instead of displaying alert, in demo:
alertcommand.onselect = function (m)
{
var txt = m.text;
// display result ui, ui sample
alert("'" + txt + "' chosen menu item");
// run javascript
//snpcreatethumbinspectorpanel.main();
}
i want run snpcreatethumbnailinspector.jsx.
do i:
- call script referencing it's location on disk
- include creatthumbnailinspector code function in addmenuitem script , direct function.onselect to run function
- or there other method totally missing?
i have scoured documentation , of sample scripts , can't seem figure out seemingly simple concept.
- james
most of examples written executed within extendscript toolkit, supplied ide.
just open script in extendscript toolkit , run bridge target.
More discussions in Bridge Scripting
adobe
Comments
Post a Comment