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

[MacPerl] Passing filenames to MacPerl using Applescript?



I'm wondering is there is a way to pass file/folder names (i.e. 
@ARGV) to MacPerl via Applescript.

My goal is to set up an automatic update of a website I run. I have a 
series of folders (20 or so) with data files and folders in them. 
Every couple of weeks I have to manually drop each folder on the 
script droplet and then move the resulting HTML files and folders to 
the appropriate place on the website. What I'd like to do is record 
or write an Applescript that will handle the drag-n-drop and the 
copying of the files to the appropriate location. I naively assumed I 
could just record all the actions once with the Applescript Editor 
and then just double-click the compiled script to repeat as 
necessary. Needless to say, that doesn't work.

Thanks to MacPerl: Power and Ease, I figured out how to get 
Applescript to run Perl script. But I'm stuck at the next step - how 
do I specify in Applescript which folders are be processed by the 
MacPerl script? Is this possible or should I just write another Perl 
script to do this for me?





-- 
*****************************************************************
Dr. Todd Richmond
Carnegie Institution of Washington
260 Panama Street
Stanford, CA 94305
Email: todd@andrew2.stanford.edu  Homepage: http://cellwall.stanford.edu/todd

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org