I want to convert PowerMath equations to ASCII in indesign document.
When I use this code, it shows the dialog "Convert equations to PowerMath ASCII", but the process is not completed. Don't know how to complete the process.
How should I click on 'Document' button to complete the process. If anyone knows pls help me.
Thanks in advance,
I got some ideas that we can click the document button of Plug-In/Export menu dialog by using applescript. But its not working for me. Code is,
tell application "Adobe InDesign CS6"
set myString to ""
set myMainMenu to menu "Main"
set myTypeMenu to submenu "Plug-Ins" of myMainMenu
set myFontMenu to submenu "PowerMath" of myTypeMenu
set myString to name of myFontMenu
repeat with myMenuItem in menu items of myFontMenu
set myAssociatedMenuAction to associated menu action of myMenuItem
set myActionMenuName to name of myAssociatedMenuAction
if myActionMenuName is "Ascii Export" then
activate application "Adobe InDesign CS6"
tell application "System Events"
tell process "InDesign"
Whats wrong in this. Pls help me.