• 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: saving in Acrobat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saving in Acrobat


  • Subject: Re: saving in Acrobat
  • From: John Cochrane <email@hidden>
  • Date: Mon, 28 Nov 2005 22:50:11 +1100


On 28/11/2005, at 9:37 AM, Rob Stott wrote:

it seems to be that you can't save to a file that doesn't already exist. So the trick is to create an empty file and then save your document to it, like this;

set theDestinationFolder to path to desktop
set theNameOfTheFileToSave to "test.pdf"
set theFile to do shell script "touch " & quoted form of POSIX path of theDestinationFolder & theNameOfTheFileToSave
tell application "Adobe Acrobat 7.0 Professional"

tell front document

activate

save to alias ((theDestinationFolder as string) & theNameOfTheFileToSave)

end tell
end tell


Thanks Rob. It gets me half way there. The file is created but seems to be corrupted and won't open.
Resetting its file and creator type doesn't seem to help.
Maybe I need to upgrade the software however even then you would expect Acrobat to have an easier way of doing this.
Thanks for the reply.

John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: saving in Acrobat
      • From: Rob Stott <email@hidden>
References: 
 >saving in Acrobat (From: John Cochrane <email@hidden>)
 >Re: saving in Acrobat (From: Rob Stott <email@hidden>)

  • Prev by Date: Tricks for updating a single podcast in iTunes?
  • Next by Date: Re: saving in Acrobat
  • Previous by thread: Re: saving in Acrobat
  • Next by thread: Re: saving in Acrobat
  • Index(es):
    • Date
    • Thread