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.

Export Pics change disk & imagename

Featured Replies

Hi, I am trying to export several images from several databases into a folder in a different Backup disk.

I tried several scripts I found but none seems to work.

Example:

Go to Record/Request/Page [ First ]

Loop

Set Variable [ $filePath; Value:"filemac:" & Get ( DesktopPath ) & "/ExportedFolder/" & Table::SerialID & ".jpg" ]

Export Field Contents [ Table::ImageField; “$filePath” ]

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

My problems:

Unfortunately the various images are jpg. bmp. and so on so I need filemaker to recognize the image extension.

I need to change the pictures name as in the db I have data in 2 different fields I'd like to use as a new filename for the backup. One data is the email which includes the "@". Is this a problem to give a name to a mac file? The other is just a serial number I added.

I need to send the images to different folders. Can i ask File maker to create it, if is not there, or select it if I have it already?

However based on the script above I changed the "& Get ( DesktopPath ) & "/ExportedFolder/" with:

"& /Volumes/Backu/Pictures/Various/"

but I always get the error telling me the file could not be created even after I created an ExportedFolder on the desktop and only used jpg images.

I have a Power Mac with Snow 10.6.2 and I use FMP 10

Thanks you very much and please consider I am a new user

Dan

but I always get the error telling me the file could not be created even after I created an ExportedFolder on the desktop

The path should be /Users/username/......

  • 1 month later...

Try removing the extra "/" from your path calculation and it should work. I just ran your script with this change and it worked for me.

WRONG: "/ExportedFolder/"

CORRECT: "ExportedFolder/"

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.