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: Ray <email@hidden>
- Date: Tue, 16 Oct 2001 10:48:35 -0700
The downside being the OSAX has to be present on the users mac, and
you're dependent on the creator to upgrade and maintain the code.
I was faced with a similar situation where a jpeg was needed from a
Quark eps. The problem was solved by using an appleScript to create the
eps from within a RealBasic application. The pict was extracted from the
eps using the RealBasic resourceFork class methods. A jpeg was then
created from the pict using a simple built-in saveAsJPEG method. No
OSAX's needed.
ryn
>
>Peter Forsyth wrote:
>
>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?
>
Use Tanaka's OSAX to get the pict resource from the image file ("MT
Load
>
Resource" ).
>
has