June 1, 20169 yr Newbies 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. Edited June 1, 20169 yr by Rebecca Bria
June 1, 20169 yr Could be it as simple as appending ".jpg" to the exported file path? See what happens if you follow the instructions here:http://fmforums.com/topic/45545-looping-script-to-extract-container-jpegs/?do=findComment&comment=212714 That should also answer your second question.
June 1, 20169 yr 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
June 2, 20169 yr Author Newbies 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
Create an account or sign in to comment