This content has been marked as final.
Show 4 replies
-
1. Re: Execute plugin menu option from script
csm_phil Oct 30, 2013 10:31 PM (in response to Dan-BTP)Hi Dan-BTP,
Try the below js code is execute the Export Kindle option using menu id.
var myExportKindle = app.menuActions.itemByID(-16769022); try{ myExportKindle.invoke(); }catch(e){alert(e)};thx,
csm_phil
-
2. Re: Execute plugin menu option from script
Dan-BTP Oct 31, 2013 7:05 AM (in response to csm_phil)Thank you! That was helpful. I had to use an ID of -16769023, but it worked.
Is there a way to interact with the subsequent dialog boxes automatically from a script? The first dialog box defines the MOBI file path, and the second one has a few fields that I need to fill in (such as title and author).
-
3. Re: Execute plugin menu option from script
Laubender Oct 31, 2013 10:23 AM (in response to Dan-BTP)@Dan – Only, if the plug-in is designed to do so.
That means, if it is deliberately scriptable…
I'd ask the developers.
Btw.: The ID for invoking the menu action will vary from installation to installation…
Uwe
-
4. Re: Execute plugin menu option from script
Dan-BTP Oct 31, 2013 11:51 AM (in response to Laubender)@Laubender:
Thanks for your response! I've written to Amazon to see if this plugin is scriptable.
Dan


