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

Import pictures into FMPro without osaxen


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

Recommended Posts

Posted

Hello,

Is it possible to import pictures (and not only a reference to this

pictures) in a container field of FileMaker WITHOUT using third party

osaxen.

Only the Finder or Apple's "osaxen".

Thank's.

--

Jean-Marie -HOO;-)

Posted

The simple way is to create an ScriptMaker import script specifying a specific file to import. Just have your AppleScript put the file you would like to import into the file location where your ScriptMaker script will look for the file to import. Your AppleScript could be launched internally (e.g. the step prior to your import step) or it could be external to FM (e.g. a do script step within your AppleScript).

Posted

Since version 3, at least, it is possible to import a picture or to store only a reference to a picture.

Since the same version , it is possible to store a reference to a picture using AppleScript. So, it is possible to import "batch" the references to all the pictures in a folder.

My question was:

Is it possible to import,

"batch",

intact and not only a reference to,

one or all the pictures from a folder

in a container field of FileMaker,

on a Macintosh computer,

using neither AppleScript osaxen nor FileMaker plug-in's ?

My experience say me : no.

I hope I'm wrong :

Jean-Marie -HOO;-)

Posted

You can batch import (not reference only) files into filemaker using an applescript that calls a fm script to import.

Of course, since you can only refer to one file in the fm script, the applescript must go through a process of copying and renaming the files. For example, say you have a folder of images: Create a script in FM to import say, "dummy.jpg". You then have applescript cycle through the original folder, delete the old "dummy" file, copy the next pic in the cycle to another location, and rename it dummy. Keep looping through til end of images.

Posted

Oops, I think I'm just elaborating on what jfmcel is saying...

But I know for sure you can actually IMPORT the file this way thru applescript.

  • 2 weeks later...
Posted

Try this:

set thePicutre to (define the file you want to import, in this case it should be a jpeg)

tell application "Finder"

set FileToImport to (open for access file thePicture)

set PictureToImport to read FileToImport as "JPEG"

close access FileToImport

end tell

tell application "FileMaker Pro"

set cell (name of desired cell) to PictureToImport

end tell

Hope it helps!

Posted

quote:

Originally posted by tobi:

Try this:

set thePicutre to (define the file you want to import, in this case it should be a jpeg)

tell application "Finder"

set FileToImport to (open for access file thePicture)

set PictureToImport to read FileToImport as "JPEG"

close access FileToImport

end tell

tell application "FileMaker Pro"

set cell (name of desired cell) to PictureToImport

end tell

Hope it helps!

Have you test this solution ? Is it works on your computer ?

On mine, none.

If it's works yours, then, what's the FileMaker, MacOs and AppleScript version ?

Posted

I was using FileMaker Pro version 4.1.

With version 5 and 5.5 it's ok.

Thanks to all.

Jean-Marie -HOO;-)

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