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

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

Recommended Posts

Posted

I have a database in FM6 that I'm attempting to convert to FM7. When I opened/converted the database in FM7, the embedded images (container fields) did not come across.

I tried several more times, but with no luck. Any ideas?

Posted

There is a way to export embedded pictures using AppleScript and a OSAX (Scripting Addition), which writes them out as JPEG files. It requires the OSAX to work (http below). Let me know if you can't figure this out, but I've got to run at the moment.

tell application "FileMaker Pro"

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

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

-- set theImage to giconvert imageCell image thePath -- creates PICT file, huge

-- doesn't seem to work for "GIFf" or "PDF ", but will do them as JPEG

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