Aussie John Posted December 14, 2016 Posted December 14, 2016 (edited) Hello - If I run my script to insert a PDF from a saved PDF I get an error after the insert picture step saying "can't find the file" - I tried "insert PDF" but the debugger says it is a wrong file type. The data viewer shows - $temppath as filemac:/Macintosh HD/var/folders/bd/v_q7j9997d1dph_lz5m1x_mm0000gn/T/S10/Dec 2016-2077 UTAS Retainer.pdf the Script is as follows; Set Variable [ $temppath; Value:"filemac:/"&Get(TemporaryPath)&Project»DATA::worksheet filename&".pdf" ] Save Records as PDF [ File Name: “$temppath”; Current record ] Go to Field [ worksheet PDFs::PDF ] [ Select/perform ] Insert Picture [ “$temppath” ] Any help would be appreciated. Cheers John Edited December 14, 2016 by Aussie John
bcooney Posted December 14, 2016 Posted December 14, 2016 Drop filemac: , it's not needed. You have an extra space before .pdf. Not sure what context you are in. So, does that Go to Field fail?
Aussie John Posted December 15, 2016 Author Posted December 15, 2016 Thanks but unfortunately no luck I had already tried with out filemac (didn't work). There is no space - just looks that way And yes I can see the field highlight during the script
bcooney Posted December 15, 2016 Posted December 15, 2016 What is the error when you step the script?
Aussie John Posted December 15, 2016 Author Posted December 15, 2016 (edited) The file appears to save ok and the error occurs on the insert picture step. (error 100 file is missing). Just to be sure I changed get(temporarypath) to get(desktop path) but with same error. Edited December 15, 2016 by Aussie John
bcooney Posted December 15, 2016 Posted December 15, 2016 So, you see the PDF on the desktop. What if you used Insert File instead of Insert Picture?
Aussie John Posted December 15, 2016 Author Posted December 15, 2016 Yes PDF is visible and will attach to an email if the check box is selected. Insert file does work. just not Insert picture or PDF
Recommended Posts
This topic is 2898 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