Re: saving in Acrobat
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