[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Scripting clip2gif in MacPerl



Hey There--

I'm trying to solve a problem with a "feature" of my website.  I have a 
DHTML news ticker, which requires NS or IE 4.0 or later.  Right now this 
degrades to a static message for older browsers. What I'd LIKE to be able 
to do is replace what users of 3.0 and earlier browsers see with an 
animate GIF using the same contents as the 'normal' ticker.

Since the site is normally only updated once a day, the solution need not 
reside on the server.  Preferably, I'd like to take the existing 
JavaScript array "arTXT" (in the file 'news.js' (which actually only 
contains the two arrays (the rest of the script is in a second file))), 
slurp it into MacPerl, and then pass it along, one string at a time to 
clip2gif, creating a series of gifs which can then be strung together to 
form the animation (with transisitions if I so desire).

Yves Piguet (clip2gif's author) gives some simple examples using 
Applescript, but his MacPerl example simply uses MacPerl as a wrapper for 
an Applescript (very inelegant IMO).  I've been following Chris Nandor's 
development of Mac::Glue with some interest, but it's beginning to dawn 
on me that much of that is way over my head.

I'm going to need a running start.  Does anyone who's tried scripting 
clip2gif in MacPerl have some code they could donate to the cause of 
getting me started?

# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
# "A couple of guys trying to do something great..."



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch