AnsweredAssumed Answered

Syntax for Applescript/Terminal Command

Question asked by jared944 on Jan 21, 2015
Latest reply on Jan 21, 2015 by jared944


Syntax for Applescript/Terminal Command


Hey everyone,

I need to merge 2 PDFs and the "append" function doesn't work because I have to append a PDF to the beginning of an existing PDF (the append feature only adds to the back, sadly). Specifically, what I am trying to do is add a cover sheet to a document before I send it via my email fax service.

So, doing some research, I found a python script buried in an automator action that is already found on OSX : System/Library/Automator/Combine PDF Pages.action/Contents/Resources/

So, I now have an apple script I can use to merge 2 pdf's :

tell application "Terminal"
    do script "cd \"/Users/user/folder\""
    do script "/System/Library/Automator/Combine\\ PDF\\ Pages.action/Contents/Resources/ -o final.pdf cover.pdf content.pdf" in window 1
end tell

My question is - how do I get the syntax right to add this as a filemaker script step? Ive tried nearly a dozen combinations and I still cant get it right.

Any help would be greatly appreciated.