• 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
Of clip2gif, clipboard, and OS 10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Of clip2gif, clipboard, and OS 10.3


  • Subject: Of clip2gif, clipboard, and OS 10.3
  • From: Brian Johnson <email@hidden>
  • Date: Mon, 18 Oct 2004 14:09:52 -0700 (PDT)


Hi all ...

I seem to be in a perpetual, if slow motion, search. I've asked before and had excellent suggestions regarding ImageMagick, Smile, etc. I've looked at these and they look viable, but each of them would require some serious work, and I feel like I'm so close... So, one more time before I plunge... I need to make some (very) simple graphics for the web. In the past (OS 9.x - 10.2) I've been using the venerable clip2gif to digest a set of object-graphics commands (mostly consisting of lines) and save them to GIF files. The catch is that under 10.3 clip2gif chokes on something as simple as

  tell application "clip2gif"
    set foo to {{color:{65535,0,0},line:{0,20,96,20}}}
    save {96,26} in "test.gif" drawing foo
  end tell

The save is what trips it, as shown, and as

   save {96,26} in file "test.gif" drawing foo
   save {96,26} in (posix path of "test.gif") drawing foo
   save {96,26} in ("test.gif" as posix file) drawing foo

and a few other combinations that seem like they should work... However,

   set picky to save {96,26} in picture drawing foo

DOES work, presumably giving me a PICT image in "picky"!! (SE's 'result' panel shows " <<data PICT004800 ....etc..>>, which is pretty convincing). Now, any ideas how I can get "picky" to disk? I tried copying it to the clipboard, but can't persuade clip2gif to do that. If I could, I could go to disk through GraphicConverter, (with a PICT to GIF conversion along the way) but perhaps there is a more direct way?

   set wtf to open for access "test.gif" with write permission
   write picky to wtf
   close access wtf

does produce a file, but it won't open in GraphicConverter, and safari renders it as a blank screen.

I tried telling the Finder to "set clipboard to picky" but that just assigns it to a variable named clipboad (doh!)...

Ideas? Dope slaps? subtle hints?

 - Brian Johnson, Dept of Architecture, University of Washington, Seattle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Of clip2gif, clipboard, and OS 10.3
      • From: peter boardman <email@hidden>
  • Prev by Date: Re: Scripting MS Word "Insert Subdocument"
  • Next by Date: Re: Scripting MS Word "Insert Subdocument"
  • Previous by thread: Re: Scripting MS Word "Insert Subdocument"
  • Next by thread: Re: Of clip2gif, clipboard, and OS 10.3
  • Index(es):
    • Date
    • Thread