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

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

Recommended Posts

  • Newbies
Posted (edited)

Hi all, thanks for your help in advance. I am sure there is an easy solution. I'm a self-taught beginner/intermediate user. I use Filemaker Pro 12 and sometimes 14 (depending on where I am working, home or university) on a mac.

PROBLEM: I am using a script to export the full size image (jpg) contents of all records for a particular container field. My problem is that they export as images within text files and I need the original unmodified jpg image. Specifically, they export as filetype "TextEdit Document".

My script uses "Export Field Contents", where I enter the container field followed by a semicolon and $Images. This sends the images to the desktop** just fine, only they are text docs--that's my problem. Note that the script also uses "Get ( DesktopPath )" to name the file, which includes essential details pulled from other fields in the record, such as the record's unique ID. The full script with Loop commands is visible in the attached screenshot.

So, how can I get the images to export as the jpgs they are? Thank you!!

 

**A separate issue if anyone has ideas!: I tried to get them to export to a particular output folder location on my computer, but I always get an error when I do this and try to export, so I stuck with the default $Images which sends them to the Desktop. Manageable but not ideal.

Screen Shot 2016-06-01 at 11.32.26 AM.png

Edited by Rebecca Bria
Posted

Do the have an extension when you export them to the desktop? It sounds like it may be missing ".jpg" at the end if that is what they are.

By exporting as they are, do you want to export them with the file name they have in the container field? You can get the file name with GetAsText function on your container field to get that file name.

Mike

  • Newbies
Posted

Both of your responses were spot on! Such a simple solution that never occurred to me: I added the text ".jpg" to the exported path and it worked beautifully.

Have a great day!

Rebecca

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