baweld123 Posted October 8, 2016 Posted October 8, 2016 Hello.all I have a script that saves files to a pdf is a person has "Passed" the exam . There is multiple Certificates and the script used to put them all together and email them as ONE pdf. Since upgrading to FM15 this script although still working and i can in fact open my email and see multiple PDFs on my MAC, the people with Windows say they cant open it. It appears to save on there system as a PDF.Dat ? If i send a single i have no problem, its just if i send as a multiple. Any ideas?
bcooney Posted October 8, 2016 Posted October 8, 2016 your $path doesn't look correct. It should end with ".pdf" and it looks as if it ends with "pdf".
Lee Smith Posted October 8, 2016 Posted October 8, 2016 Did you step through the script using the Script Debugger and Data Viewer?
baweld123 Posted October 8, 2016 Author Posted October 8, 2016 Hello Thanks for your reply, Yes your right the dot is missing if i use the script debugger and let the first PDF load onto desktop there is no .Pdf only Pdf If i reneame it and put in the dot it shows as a full pdf on my desktop. So the question is how do i get the dot in there? Thanks
bcooney Posted October 8, 2016 Posted October 8, 2016 $path = get (desktop path) & "filename" & ".pdf" where filename is whatever you want it to be
baweld123 Posted October 8, 2016 Author Posted October 8, 2016 great Thanks for that after i sent that i checked through and saw it , Problem i have now is that its not loading onto the email. It used too though. the pdf loads onto desktop perfect! //PATH Get ( DesktopPath ) & //NAME BS Testing Input::BS Person1 & ".pdf" this is what i have
bcooney Posted October 8, 2016 Posted October 8, 2016 Can you print your script to pdf (not a screen shot) and post again? Also, the above script assumes that the first PDF is created, because all the others append. Is that a fair assumption?
baweld123 Posted October 8, 2016 Author Posted October 8, 2016 yes it assumes the first is created then appends. Wow i didnt even know you could print scripts to PDF , here it is . thanks Print all if passed.pdf
bcooney Posted October 8, 2016 Posted October 8, 2016 You should not be redefining $path in the "Boron Awareness" section. $path should only be defined at the top of the script. Also, what is a typical value for the field "BS Testing Input::BS Person1"? I typically script or substitute any values in the field that would result in a file name that is not friendly. That is, substitute out spaces and put underscores, make sure you do not have any periods, such as "Sara J. Cooney" which'll break your path. In the Send Mail script step, simply enter $path in the Attachment dialog.
Recommended Posts
This topic is 3340 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now