Skip 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.

Batch Import of PDF files

Featured Replies

Is there a way to import a folder of PDF files, as you can with images, putting each pdf in a container field? Import folder only seems to let me do pictures and text files.

Is there a way to do this with a script?

If (and only if) you had a list of the filenames in a field (called say "PDFnames"), you could write a script along the lines of:

loop

set variable [$loops , $loops + 1)]

exit loop if [$loops > valuecount(PDFnames)]

set variable [$whichPDF , middlevalues(PDFnames,$loops,1)]

set variable [$filename , "file:" & $whichPDF]

new record/request

insert file [containerField , $filename]

end loop

This, as I say, will only work if you have the list of PDF filenames in a field.

If you are using (or can use) a mac, this could be automated fairly easily by running a simple AppleScript to "get the name of each item of folder xxxx" before doing the routine above.

I'm not sure how to do this on Windows, but a question in the Visual Basic/ActiveX section would probably not be a bad idea.

Good luck!

James

  • Author

James, thank you for your response! That is very helpful. A friend of mine who is a good programmer whipped up a nice little solution too. It also requires applescript and therefore must run on a mac.

This solution has one very simple (but beyond my programming skills) script that basically works just like the import -> folder of images function in the Filemaker File menu. You run the script and it prompts you to pick the folder then puts the files in a container field and the names of the files in a text field.

I am attaching the file with his fully functional example with his permission. It is for version 7 and up and completely unlocked and available for study.

I hope this thread is useful for someone else.

PDFTest.zip

  • Newbies

Huge thanks for this script. Solved a problem in one go!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.