Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5294 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

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/"

This topic is 5294 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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