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

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

Recommended Posts

  • Newbies
Posted

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.

  • Newbies
Posted

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!

Posted

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

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