Re: Applescript and FileMaker
Re: Applescript and FileMaker
- Subject: Re: Applescript and FileMaker
- From: Simon Topliss <email@hidden>
- Date: Wed, 14 Feb 2001 08:40:40 +0000
Hi Mike,
I posted the same question a bit ago and Ehsan Saffari gave me help with the
following script. You'll need to modify it to repeat through a folder of
PICTs. The cell "Picture" in the Filemaker database needs to be set as a
container.
-- ** SCRIPT START ** --
-- This bit reads the PICT file into a variable that is then placed into the
database
set pictFile to open for access file ("" & (path to desktop) &
"Picture.pct") -- all one line
set myPict to read pictFile from 513 as "PICT" --skipping 512 byte header
close access pictFile
tell application "FileMaker Pro"
tell document "Image DB.fp5"
set newRecord to create new record
go to newRecord
set cell "Picture" of newRecord to myPict
end tell
end tell
-- ** SCRIPT END ** --
Hope this helps,
Simon Topliss
On 12/2/01 9:43 pm, "Cooper, Mike" <email@hidden> wrote:
>
I would like to know if anyone has an Applescript that works with FileMaker
>
where you can take a folder of pictures that are in PICT format and
>
individually copy the picture into a Filemaker Database.
>
>
There is one that comes with Filemaker but it just imports a reference to
>
the picture. I want to actually copy the picture and then paste it into
>
Filemaker.
>
>
Thanks
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users