Thanks for posting.
You can use the Get(DocumentsPath) function to point to the location of the file. Our Quality Assurance (testing) department wrote this sample script a while ago:
Set Variable [ $FileName ; Value: "Test_" & Substitute ( Get ( CurrentDate ) ; "/" ; "-" ) & ".pdf" ]
Save Records as PDF [ No dialog ; "$FileName" ; Records being browsed ]
Set Variable [ $PDFPath ; Value: Get (DocumentsPath) & $FileName ]
Send Mail [ Send via E-mail Client ; To: "firstname.lastname@example.org" ; Subject: "Invoice" ; Message: "Test" ; "$PDFPath" ]
It looks like you already have the variable for the file name set up, so you should really only need to pay attention to the last three steps. Let me know if you run into any trouble implementing this.
So easy - Thank You TSBear!
Added a little juice from an old template
Let ( [ MAC = "filemac:" & Get ( DesktopPath ) ; PC = "filewin:" & Get ( DesktopPath ); iOS=Get (DocumentsPath) ] ; Case(Abs(Get ( SystemPlatform )) = 1; MAC; Abs(Get ( SystemPlatform ))= 2 ; PC; Abs(Get ( SystemPlatform ))= 3 ; iOS; ) & $FileName )
Also, use a non-custom name so you don't load the iPad with unwanted PDF files.
For PDF's on the mac and windows platforms, File: works for both.