• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating file from PICT Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Remote Access Weird Errors
  • Next by Date: Re: "create icon" command in GraphicConverter
  • Previous by thread: Re: Creating file from PICT Resource
  • Next by thread: "create icon" command in GraphicConverter
  • Index(es):
    • Date
    • Thread