July 11, 200520 yr Newbies Hello. I am working with a Filemaker application which stores image records in .fp5 files. I'm trying to figure out a way to export image data to external files, using another field value for filenames. From what I've read so far in various forums here, ExportFM seems like the most suitable option. Ultimately, my plan is to script the export, resize (using Photoshop) and upload of these images for web use. The last two I've done before, but I'm pretty new to Filemaker. Has anyone previously implemented anything to export image data to files from image container fields? Are there other options besides ExportFM? Thanks much.
July 12, 200520 yr Newbies If you use FM7, it is an option included. Just right-click (or ctrl-click) on the container and you'll have "export image". You can also export within a script. Than guess you need an applescript to open the imagine in photoshop and relink it. Bye!
July 12, 200520 yr You can export a JPEG from a FileMaker container field using only AppleScript. It may or may not be as convenient as a plug-in. It requires a small Scripting Addition, which has to go in one of the 2 Scripting Additions folders. I've included the link to get it. Some lines are --commented. You must have the fields (cells) in FileMaker, and they should be on the current layout. --tell application "FileMaker Developer" -- line not needed inside FileMaker, only in Script Editor tell current record of window 1 set txtPath to cell "thePath" set imageCell to cell "theImage" set folderName to cell "folderName" set folderPath to cell "folderPath" end tell --end tell tell application "Finder" if (folder folderName of desktop exists) is not true then -- creates a new folder if it doesn't exist set newFolder to make new folder at desktop with properties {name:folderName} update newFolder end if set thePath to txtPath as file specification end tell set theImage to giconvert imageCell type "JPEG" image thePath -- requires GraphicsImporter OSAX, http://osaxen.com/files/graphicsimporter2.2.html (P.S. GI can resize an image to set bounds, but it cannot scale. The Image Events background app can; don't remember if it's included with Jaguar.)
Create an account or sign in to comment