Hi again
I know you'll point me to the user manual of AppleScript but I'll try anyway for the last time.
I made a simple script in AppleScript for Acrobat Professional Pro to make a couple of menu items clicks to ocr an image and save it as plain text.
This runs fine one one mac and doesn't in another one which has the same OS (Yosemite)
The only difference is that on the mac that doesn't work the language and versione of Acrobat are different but I've changed the menu names in the code to Italian (and checked the spelling) and also made sure the process name was right.
I'm getting this error:
error "System Events ha trovato un errore: Impossibile ottenere " number -1728 from process "AcrobatAcrobat"
it says System Events found an errore: Impossible to get ...
I know you'll point me to the user manual of AppleScript but I'll try anyway for the last time.
I made a simple script in AppleScript for Acrobat Professional Pro to make a couple of menu items clicks to ocr an image and save it as plain text.
Code:
tell application "System Events"
tell application process "Acrobat"
tell application "Adobe Acrobat Pro" to activate
click the menu item "Recognize Text Using OCR..." of menu 1 of menu item "OCR Text Recognition" of the menu "Document" of menu bar 1
delay 2.4
click button "OK" of window "Recognize Text"
delay 2.4
click the menu item "Text (Plain)" of menu 1 of menu item "Text" of menu 1 of menu item "Export" of the menu "File" of menu bar 1
click button "Save" of window "Save As"
end tell
end tell
end
This runs fine one one mac and doesn't in another one which has the same OS (Yosemite)
The only difference is that on the mac that doesn't work the language and versione of Acrobat are different but I've changed the menu names in the code to Italian (and checked the spelling) and also made sure the process name was right.
I'm getting this error:
error "System Events ha trovato un errore: Impossibile ottenere " number -1728 from process "AcrobatAcrobat"
it says System Events found an errore: Impossible to get ...