Re: Creating file from PICT Resource
Re: Creating file from PICT Resource
- Subject: Re: Creating file from PICT Resource
- From: Michelle Steiner <email@hidden>
- Date: Thu, 7 Jun 2001 19:21:41 -0700
On 6/7/01 4:40 PM, Pier Kuipers <email@hidden> wrote:
>
So far I have managed to script GraphicConverter to create a PICT
>
preview for a file if a preview doesn't exist. I've also managed to
>
create a new file with that PICT resource in it. However, that
>
doesn't make it a new image...
>
>
How can I write a script that uses the data from the PICT resource to
>
create a brand new JPEG image, all in Applescript?
copy that pict resource to the clipboard, then use this code:
tell application "GraphicConverter"
activate
new image from clipboard
end tell
It will create a new window with the image, then all you have to do is
save the file.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------