• 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
Re: Script Modification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Modification


  • Subject: Re: Script Modification
  • From: Neil Laubenthal <email@hidden>
  • Date: Sun, 16 Jan 2011 12:04:27 -0500

Yes . . .there are System Events calls and is using GUI scripting. I didn't think putting in the whole script was necessary. What I'm trying to do is just replace Save with Save as and append to the name so it's still an automatic save back to the original location rather than saving over the original file.

The original file is a PDF containing the scanned image and the original code saves the OCR'ed version replacing the original file. I tend to throw very few files away . . .hence was trying to keep the automatic save but change the name. If the only way to do it is to change the path and keep the original name I'll do that .  .but dumping file_OCR back into the same directory as file would be fine.

Joe's script deliberately uses GUI Scripting and includes a bunch of code to work with various versions of Acrobat . . . it's just that I'm not enough of a scripter to figure out how to easily do that.


On Jan 16, 2011, at 11:22 AM, email@hidden wrote:

>
> tell the front document
>   save as newPDFpath
>   --save in newPDFpath
>  -- Check the acrobat dictionary for the exact term
>  close
> end tell
>
> If that doesn't work, let the list know and we'll find a better solution.
>
> BTW, I'm betting that Adobe mucked with the commands for saving between various releases and Mr. Kissel used the Click commands do develop a script that would work with several releases.  The example I provided may not work with other versions of Acrobat.
>
> ES


-----------------------------------------------
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>
References: 
 >Script Modification (From: Neil Laubenthal <email@hidden>)
 >Re: Script Modification (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Top-posting [ was Variable names]
  • Next by Date: Setting bounds in Terminal
  • Previous by thread: Re: Script Modification
  • Next by thread: Re: Script Modification
  • Index(es):
    • Date
    • Thread