Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to inserting a pdf regardless of the user in windows

Featured Replies

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

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?

  • 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!

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

  • Author

Thank you very much for the help 

  • 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

  • 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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.