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

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

Recommended Posts

Posted

Happy New Year to you all!

I am writing a script that will export field contents (a picture) of the current found set. The way it is currently written, it will export each picture, but you have to choose your output path and hit "Enter" to export each file and move onto the next one.

First my question is, how can I make these files export to the user's desktop automatically while retaining their original filename? We are sharing the database on FM Server, so I'd like it to be a universal script. Or if worst comes to worse, I can hard code the output path for each person exporting pictures as long as they don't have to hit enter after each export.

Second, is there a way to write some type of calculation field to rename the exported picture automatically to another field's name? I don't see any options to even do this, so I'm not entirely sure it's even possible.

Here is what the script looks like so far in case you want to see it:

Go to Record/Request/Page [First]

Loop

Export Field Contents [Database:image]

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

End Loop

Thanks for the help! Appreciated :)

Posted

BEAUTIFUL! Thank you, comment! Worked like a charm.

Show All Records

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

This topic is 5435 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.