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.

emailing an image that only has the filereference stored

Featured Replies

I need to set up a script that will my client to email photos of paintings to various galleries. The image link is stored in the database and the image can be viewed in the database. I am wondering if it is possible to script attaching a file dynamically in filemaker? I know you can set a specific file but I can't find anything on naming the file to attach dynamically.

Anyone know if this is possible?

  • 2 months later...

You should be able to use the script variable to do this by storing the file name in the variable and then using that variable in the Attach File dialog.

I have not tested this as typically I use SMTPit Pro to send nicely formated HTML emails. http://www.smtpit.com

Daniel

To amplify what dharlow said. The FileMaker syntax file path for a referenced image is available via the GetAsText function. The absolute file path will be the last line (3rd line if local file, 2nd line if remote, as there is no relative path for a remote file). You didn't say whether it was local or not.

So, you just need to parse out that last line, use Set Variable, and use that as the attachment. Looks like this:

Set Variable [ $pic_path; filemac:/manavesh/Public/Wounded_man.jpg ]

Then, in the attachment path dialog, just use: $pic_path (no quotes)

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.