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

[MacPerl] JavaScript Array to MacPerl



All--

Actually the subject is a bit misleading.  I've been stuck on this for a 
while.  On my website, I have a DHTML banner which I'd like to have 
degrade smoothly to an animated GIF with similar content.  My plan has 
been to send AppleEvents to clip@gif from a MacPerl script, using the 
data from the JavaScript array.

Alan Fry graciously (all but) solved the problem of controlling clip2gif 
from MacPerl.  If anything his example code does much more than I needed 
for that purpose (easily enough modified).

My main problem is that I've spent more time modifying other's code than 
actually writing programs myself, and I haven't a CLUE where to begin.

What I have is a file, which contains two JavaScript arrays.  The first 
array is inconsequential to the problem at hand. The second array 
contains the text which is rotated through the banner.  To make things 
easier, the second array contains whitespace characters within each 
string, and the quote (") is always followed by a space.

What I need to do, is step through the array one item at a time, and send 
the text to clip2gif.  I have the code to do the latter (at least for one 
item).  What I need is the code to do the former.

--Brian

# 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