September 20, 200124 yr 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;-)
September 23, 200124 yr 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).
September 24, 200124 yr 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.
September 26, 200124 yr 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;-)
September 26, 200124 yr 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.
September 26, 200124 yr 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.
October 11, 200124 yr 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!
October 12, 200124 yr 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 ?
October 12, 200124 yr 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?
October 12, 200124 yr 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