Re: Export Image From FileMaker
Re: Export Image From FileMaker
- Subject: Re: Export Image From FileMaker
- From: christian vick <email@hidden>
- Date: Wed, 12 Nov 2003 13:19:03 +0100
>
At 06:29p +0000 11/10/2003, Simon Forster didst inscribe upon an
>
electronic papyrus:
>
>
> Help. Please help.
>
>
>
> I've been given a FileMaker Pro database which has got images in a
>
> container field and I need to get the images out of FileMaker and
>
> saved as pics. I had hoped that I could get the pic data (which
>
> appears to be of type pict) and just write it to a file - but this
>
> doesn't seem to work - at least graphic converter doesn't recognise
>
> the subsequent file.
It does if the file suffix is .pict.
>
PICT files have a 512-byte app-specific header. If you create such a
>
file, you need to fill up 512 bytes at the top. Since AS doesn't have
>
a 'repeat' operator, you could generate a dummy header like this:
>
>
set h to "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
>
set h to {h, h, h, h, h, h, h, h} as string
>
>
Create your file, write h to it, write the pict data to it, and voila.
Good tip! Now the FM pict files show up correctly even in Finder's column
view, thanks!
Greetings
Christian
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.