Re: FM insert Picture
Re: FM insert Picture
- Subject: Re: FM insert Picture
- From: Jean-Marie Hoornaert <email@hidden>
- Date: Sun, 15 Jul 2001 22:55:17 +0200
le 15/07/01 22:05, Max Bonilla a icrit :
>
I sent this already, but I believe I might have had a problem with my
>
server and did not receive any messages for a few days. Perhaps
>
someone had responded and I was not able to read the message. So
>
here it goes again. Sorry for the double post and thanks for the
>
help.
>
>
>
I'm trying to insert a picture to a FM database but no matter how I
>
try I get an error.
>
>
tell application "FileMaker Pro"
>
set LifeTeenPictures to alias "MacintoshHD:Dumping
>
Ground:Kodak Darkroom:LifeTeen Pictures:"
>
set PhotoName to "0687.JPG"
>
set PhotoStorage to LifeTeenPictures & PhotoName as string
>
set PhotoStorage to a reference to file PhotoStorage
>
>
>
set cell "Picture" to PhotoStorage
>
set PhotoStorage to cell "Picture"
>
end tell
>
>
>
The name of the picture will change as the script runs, so I need to
>
find a way to make PhotoStorage a file reference that FM will
>
appreciate. Any help will be much appreciated. Thanks a million!
Try this :
set LifeTeenPictures to ,
"MacintoshHD:Dumping Ground:Kodak Darkroom:LifeTeen Pictures:"
set PhotoName to "0687.JPG"
set PhotoStorage to LifeTeenPictures & PhotoName as string
tell application "FileMaker Pro"
set cell "Picture" to file PhotoStorage
end tell
And take a look at :
http://users.skynet.be/jmh-h2o/Telechargements/Informations/catalogueur.html
there, clic on "Telechargement 84Ko"
It's in french, but it is a "FMPro-AppleScript" picture catalogue.
--
Jean-Marie -HOO;-)
____________________
Jean-Marie Hoornaert
email@hidden
http://www.h2o.be
AppleScripting FileMaker
French web site