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.

Featured Replies

  • Newbies

Hello everybody,

I am trying to write a script to retrieve a pdf file from an external drive.

I am trying to use this command:

"file:/Users/alfredomarques/Desktop/Databases/PDF/" & Document Control::Document & ".pdf"

This not working and says that the file cannot be found. Even using filemac it doesn't work.

 

Any help on it, please?

 

Thank you very much in advance

Are you sure you need the first two sets of quotes?

  • Author
  • Newbies

Yes. Or else it says Table not found. 
 

Thank you very much anyway!

On 7/19/2021 at 11:00 AM, Makangsi said:

write a script to retrieve a pdf file from an external drive.

I am not sure what exactly "retrieve a pdf file" means. Also, a path that goes through a user's desktop does not seem to be on an external drive?

Anyway, the simple way to solve this is to insert the file into a container field (as reference only) and compare the resulting path with the path created by your calculation. Then, I suspect, you will discover that the path created by Filemaker has the drive's name before the /Users location step.

Note also that Filemaker has a function that returns the path to the desktop folder of the current user. If that's what you need in your situation, you could make your task simpler by making your calculation =

Get(DesktopPath) & "Databases/PDF/" &  Document Control::Document & ".pdf"

 

Edited by comment

4 hours ago, Steve Martino said:

Are you sure you need the first two sets of quotes?

Huh?

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.