I am successfully able to take the low res file and send it to an email address with blat using these parameters
-attach "$FFin$" -to XXX.XXXXX@XXXXXXXXXX.com -subject "blat test" -body "this is my message" -server XXX.XX.X.X -f XXX.XXXXX@XXXXXXXXXX.com
But the file that is attached to the email is names "temp.pdf" which is not the filename, does anybody know why that would be?
When a job is processed through the workflow, the filename at time it finishes a node is “temp.pdf”. I assume you are using an external node to initiate the blat processing. You could add as a variable in the External node $FFwfjob.jobName$ or perhaps $FFwfDoc.inputFileName$ and then copy the file from $FFin$ and rename it based on $FFwfjob.jobName$.pdf.
ive tried adding a few different variables , but anything i add to the external node other than wjhats there at the moment ends in a fail on the freeflow file queue, could i get a little more info on how these variables should be strung together, i feel im missing something
A possibility is $FFin$ is being renamed in the external node. It needs to remain temp.pdf. You want to copy $FFin$ and then rename the copy -- leaving $FFin$'s name alone.
Sorry to revisit this one after such a long time, but ive been asked to make it work, would you be able to assist me in getting this to work?
im not quite sure what "A possibility is $FFin$ is being renamed in the external node. It needs to remain temp.pdf. You want to copy $FFin$ and then rename the copy -- leaving $FFin$'s name alone." means or how i would implement it.
Any help really appreciated
A possible solution a .bat that copies the $FFin$ to a new location using the $FFwfDoc.inputFileName$ variable as the pdf name. Then using this copied file to send via blat.
:: Save_wDir.bat - for FF Core external process
:: save FF Core output file
:: Call with "$FFin$" "$FFout$" "BaseDir" "$FFwfDoc.inputFileName$"
:: echo %date% %time% %1 %2 %3
copy %1 %BaseDir%\%NumPath%\"%FileName%"
::-attach %BaseDir%\%NumPath%\"%FileName% -to XXX.XXXXX@XXXXXXXXXX.com -subject "blat test" -body "this is my message" -server XXX.XX.X.X -f XXX.XXXXX@XXXXXXXXXX.com
External node parameters:
HI There David
So i got the smtp server sending, so i know its working, i created a batch script and added as per your instructions, as yet no email has come through , the file has been placed in C:\Temp and that file is called Temp.pdf
Should those steps in your script be enough to make blat work? or have i misinterpreted your instructions, I thought the script that is used in external had to be the blat.exe for it to work
The script I provided should be producing a pdf with the FFCore filename at the C:\Temp directory. I am not familiar with blat. I was hoping that your knowledge of blat could enable an extension of the script to work with blat. Xerox Professional Services may be able to get your requirements met -- of course there is probably some sort of charge.