Jump to content

How to inserting a pdf regardless of the user in windows


Gilbert13
 Share

This topic is 2823 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 2823 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.