On 27 Nov 2005, at 10:37, John Cochrane wrote: Any help with a way to save or an alternative for the file conversion would be much appreciated.
Mmmmm...
Unfortunately I can't test this with Acrobat 5, that's pretty old!
However, I get the same problem you describe with Acrobat 7.0, so I'm guessing its the same issue. I remember a similar problem with earlier versions of Illustrator too - 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
...there may be a more elegant solution to this, but that's the best solution I can think of and it does work.
Good luck
r.
---
Rob Stott - Development Team, Trident UK Tel: +44 (0) 1482 828100 • Mobile: +44 (0) 7881 811533
|