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.

Importing photos via script in FM 7

Featured Replies

I import scanned photos into FileMaker 7 and then add comments to the resulting records. If I import manually 'File > Import Records > Folder' I get the option to import attribute fields such as image, filename, file path and image thumbnail. However, if I try to create a script to import a picture all I get is the image, not the extra attributes. Am I missing something?

Are you able to get a trial version of FM Pro9 as this may give you the options you are after as you are able to select "File/Folder" during the creation of the script step. I do not have version 7 to check against.

Regards

Phillip

Are you importing as [x] As reference only or not? When that is unchecked, you "embed" the entire picture into FileMaker, using Insert Picture (single file), then all FileMaker stores (other than the picture) is the file name; which you can see with a calculation, result Text, GetAsText ( container field ).

The same calculation on a "referenced" picture file will return:

dimensions

relative path

absolute path

The last line is much the same as the Full Path imported with Import Folder, except that it is in FileMaker syntax, i.e., prefixed with "imagemac:/", instead of "file://" (the URL syntax that Import Folder brings in).

But if you want the creation of thumbnails, and you want to import a single file at a time, then I think you'll need to use AppleScript. The thumbnail creation can be done with the Image Events background app. If you want to do that, let me know, I have examples (here somewhere). Specify whether you're embedding the picture or not, as they can be done somewhat differently.

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.