Re: FileMaker 7 Container Fields
Re: FileMaker 7 Container Fields
- Subject: Re: FileMaker 7 Container Fields
- From: Bruce Robertson <email@hidden>
- Date: Mon, 21 Mar 2005 12:22:38 -0800
> Hello Everyone,
>
> I have seen scripts such as the one below for inserting JPEGS into FileMaker
> 6 container fields. Can any file type be inserted in a similar manner?
> FileMaker 7 Container fields can now hold any file type so it would be nice
> if I could use a similar technique with files like word docs, etc.
>
> In short is there a way to read ANY file of the disk into Applescript and
> then set it into a Container Field in FileMaker 7
>
> Thanks for all your help.
>
> Todd
>
>
>
> --Script that works in 6 for images
>
> set myJPEGFile to choose file
> set myRef to open for access myJPEGFile
> set myImage to read myRef as "JPEG"
> close access myRef
>
> tell application "FileMaker Pro"
> tell database 1
> tell record 1
> set cell "Image" to myImage -- "Image" is a
> container field
> end tell
> end tell
> end tell
First of all your script can be simplified:
set myImage to read (choose file) as "JPEG"
tell application "FileMaker Pro"
tell database 1
tell record 1
set cell "Image" to myImage
end tell
end tell
end tell
If you want to use a file reference, then it is easy enough but I do hope we
can figure out how to set the value of a container field NOT as a reference
and I don't know how to do this either yet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden