• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script Modification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Script Modification
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: Top-posting [ was Variable names]
  • Next by Date: Re: What is class furl?
  • Previous by thread: Re: What is class furl?
  • Next by thread: Re: Script Modification
  • Index(es):
    • Date
    • Thread