March 10, 201510 yr How can I change the path so the script will insert the pdf regardless of the user in windows and regardless of the pdf name? This is the original path is: imagewin: /C/Users/Home/Documents/pdf/anyname.pdf Thanks in advance
March 11, 201510 yr You can use the FM function Get(DocumentsPath) to take the user out of the equation, but you have to know the PDF name obviously. No way around that. You can't insert what you can't target. What is it that you are trying to do? Can you let the user select the file?
March 11, 201510 yr Author No problem, I can specify the name of the document however I do not understand how to use the function Get(DocumentsPath) in the Insert PDF scipt step. Please help!
March 11, 201510 yr I do not understand how to use the function Get(DocumentsPath) in the Insert PDF scipt step. You wouldn't use it in the Insert PDF[] script step itself, but in a Set Variable[] step - for example: Set Variable [ $myPath; Value:"imagewin:" & Get ( DocumentsPath ) & "pdf/anyname.pdf" ] Insert PDF [ “$myPath” ] See: http://www.filemaker.com/help/13/fmp/en/html/create_db.8.42.html#1087742
March 11, 201510 yr Author I need to rename a pdf document in the folder "pdf" from 2342355.pdf to pdf.pdf however I do not know where you specify the desired name in cmd cmd /c REN /Q *.pdf "%userprofile%documentspdf" Thanks in advance
March 11, 201510 yr Author I found a way to rename my pdf and I want to share with the forum for the benefit of others. cmd /c for /f "delims=" %i in ('dir "%userprofile%documentspdf*.pdf" /s/b') do rename %i pdf.pdf Thanks
Create an account or sign in to comment