Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Import pictures into FMPro without osaxen

Featured Replies

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

Manually yes.

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

I think that will store just reference to the graphic.

Bon Jour, mes amis... I just checked FM 5 and found that you can specify either to import the picture or to store only a reference.

  • Author

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

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.

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

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!

  • Author

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 ?

On mine it works fine!

Applescript 1.6, OS 9.2 (but it worked also on 8.6) FileMaker 5

what error do you have?

  • Author

I was using FileMaker Pro version 4.1.

With version 5 and 5.5 it's ok.

Thanks to all.

Jean-Marie -HOO;-)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.