Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

AppleScript doesn't understand how to save a document in Acrobat?

$
0
0

Since BridgeTalk is out of the question, I've discovered that I should be able to use a doScript() command from my main InDesign script to call an AppleScript script which, in theory, can interface with Acrobat.

 

However, I cannot even get the simple "save" command to work.  I input the code:

tell application "Adobe Acrobat Pro"

          set templateFile to "/Volumes/g/ ArtDept/Product Templates/ ProofCover/proof_cover.pdf"

          set saveFilePath to "/Users/apache/Desktop/"

          set fileName to "407543_cover.pdf"

          set myDoc to open templateFile

          tell myDoc

                    save to file (saveFilePath & fileName)

          end tell

end tell

And the response I receive, after Acrobat opens the template file, is:

AppleScript Error

missing value doesn't understand the save message.

What am I doing wrong?


Viewing all articles
Browse latest Browse all 12130

Trending Articles