Re: Getting a resource (PICT preview) from a file
Re: Getting a resource (PICT preview) from a file
- Subject: Re: Getting a resource (PICT preview) from a file
- From: JJ <email@hidden>
- Date: Sat, 13 Oct 2001 13:11:24 +0200
>
Any recommendations about how to use applescript to extract a thumbnail
>
preview, which is stored as a resource in the file, for use in a Filemaker
>
database?
>
>
Tools readily at my disposal are: GraphicConverter, QuickTime, and if need
>
be, Photoshop and Debabelizer.
>
>
I suppose it would be possible to get it with PreFab Player and ResEdit, but
>
I'd prefer a more elegant solution if possible :)
>
>
On a somewhat related note...it seems I read about an AppleScript that made
>
it possible to take screen shots that are *vector* PICT images (that is,
>
they may be enlarged and keep their resolution on vector fonts etc.) If
>
anyone knows what this is, I'd love to find it!
You only need Akua Sweets & QuickTime installed.
set i to (choose file) -- alias "HD:YourFileWithPICTResources"
set k to the resource of type "PICT" in i -- PICT info
store image k
-- display a "save image as" dialog
-- You can (store image k in [file specification])
-- and you won't be prompted.
-- You can also save "as" JPEG, TIFF, PICT... all QuickTime features.
Or, if you don't wish a file:
set i to (choose file)
set k to the resource of type "PICT" in i
tell application "FileMaker Pro"
set cell 1 of current record to k
end tell
JJ