Re: FileMaker question
Re: FileMaker question
- Subject: Re: FileMaker question
- From: Pier Kuipers <email@hidden>
- Date: Thu, 19 Jul 2001 16:13:19 +0100
At 22:23 -0400 18/7/01, Romulus Barabas wrote:
I'm trying to write a script for FileMaker Pro that would import a
PICT file whose name matches the value of a cell in the currently
displayed record. I couldn't find an import or insert picture command
in the dictionary, and the FM script "insert picture[]" will only
import a certain PICT that exists when I define it.
tell app "Finder" set thePath to selectionend telltell application
"FileMaker Pro"
activate go to database "myDatabase.fp3" set data
of cell "myContainerField" of current record to file thePathend tell
-- Unfortunately, this will only store a reference to your image, so the
picture will disappear if the original can't be found, is moved, or
whatever. You might try something with the clipboard, after copying the
image:
set data of cell "myContainerField" to the clipboard
Haven't tried it, but I think that requires Jon's commands.
Second question: is there a way to change the "current directory"?
Meaning: can I have the "choose file" or the "Insert Picture" dialog
box to go directly to a specific folder?
Control panel Default Folder might do what you want:
http://www.stclairsoft.com
Hope this helps,
Pier.--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com