Re: Export Image From FileMaker
Re: Export Image From FileMaker
- Subject: Re: Export Image From FileMaker
- From: Walter Ian Kaye <email@hidden>
- Date: Tue, 11 Nov 2003 14:28:03 -0800
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.
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.
-boo
PS. You might want to fill some of that header with human-readable info.
_______________________________________________
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.