Script Modification
Script Modification
- Subject: Script Modification
- From: Neil Laubenthal <email@hidden>
- Date: Sun, 16 Jan 2011 09:44:55 -0500
I'm looking at some scripts that Joe Kissel published on MacWorld that do auto OCR with Acrobat Pro 9. Joe provides two scripts . . .one that saves over the existing pdf from the scan and one that offers a Save as Dialog box to rename the file.
I'm trying to modify the auto save as script to save with an automatic rename of the file . . .the relevant portion of the script that does the save is:
tell application appName
activate
save the front document
close the front document
end tell
(the variable appName is used to capture the version of Acrobat you have installed).
The code from the Save as script is:
-- Save As code
repeat until exists menu bar 1
end repeat
click the menu item "Save As..." of menu "File" of menu bar 1
repeat until name of front window is "Save As"
end repeat
repeat until name of front window is not "Save As"
end repeat
click the menu item "Close" of menu "File" of menu bar 1
-- end of Save As code
How would I modify the first set of code to do a Save as and use the existing name with _OCR appended to the filename? Although I do follow this list . . .I'm really not much of a scripting guru.
Thanks.
-----------------------------------------------
There are only three kinds of stress; your basic nuclear stress, cooking stress, and A$$hole stress. The key to their relationship is Jello.
neil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden