Installing ImageMagick - how to guide

2008-04-15 Thread Peter N Lewis
I've fought ImageMagick install a few times, and again recently (it is better, but still a pain). One issue that affected me and probably would not affect others is I needed to keep the non-universal builds of libjpeg et al out of /usr/local, hence the prefix used in this, but probably not

Re: CamelBones Leopard PPC?

2008-02-10 Thread Peter N Lewis
My CamelPhones photo program stopped working and now just prints: Error creating CFBundle from support bundle at URL file://localhost/Library/Frameworks/CamelBones.framework/Libraries/darwin-thread-multi-2level-5.8.8.bundle I tried checking out the CVS but ./configure; make just spews errors

Re: Proposed Mac::Pasteboard

2008-01-29 Thread Peter N Lewis
and then write Mac::Clipboard using Mac::Pasteboard to expose only the clipboard. In the SEE ALSO section you can reference Mac::Pasteboard and people who need the advanced functionality can find it. Interesting thought. The straightforward implementation would be to have Mac::Clipboard

Re: Mac OS alias from Perl

2007-12-09 Thread Peter N Lewis
At 19:01 -0500 8/12/07, Dan Neville wrote: Does anyone know how to make a Mac OS alias in Perl? So, I wish to have Perl create aliases in multiple directories rather than copy the original file. There actually is no API call to create an alias file. You can do it in Perl as described at

Re: Detecting OS X version from perl

2007-11-18 Thread Peter N Lewis
At 17:52 -0700 15/10/07, Chris Nandor wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (David Cantrell) wrote: ie whether it's 10.0, 10.1 etc, I don't care about the difference between 10.3.3 and 10.3.4. This is nice in that it doesn't depend on external processes (sw_vers, Finder)

Re: iCal modules

2006-08-10 Thread Peter N Lewis
At 20:55 -0500 10/8/06, Ken Williams wrote: locate gluemac While on this topic, one of the first things I do to any newly installed Mac that I will use is to move the locate database update from weekly to daily and remove the run as nobody so it runs as root (otherwise it does not see any

Re: Mac / Perl / 3D

2006-07-29 Thread Peter N Lewis
Thanks for the various answers. I have done the Perl - POV-RAY source before, as well as Perl - 3DML text format before. I guess I could also use any scriptable drawing package (see http://www.peter.com.au/programming/scripted-drawing.html ;-) and do my own 3D conversion as necessary.

Re: How to get a pid

2006-07-29 Thread Peter N Lewis
I could not figure out how to get the tool process's id. But by observing, I notice that its pid is 'always' equals to child process's pid+1. PIDs can wrap, so there is no guarantee of this at all. Why do you call waitpid with -1, when you know the pid you want to wait on ($kidpid). The

Mac / Perl / 3D

2006-07-25 Thread Peter N Lewis
I'm interested in producing some drawings/diagrams/pictures based on 3D data/objects generated from Perl. Something that would allow me to write code that generates boxes, cylinders, spheres, etc with various colours and material styles and generate an image (or potentially an animation).

Re: Regex and Mac vs UNIX line endings

2006-07-21 Thread Peter N Lewis
At 19:25 +0200 20/7/06, kurtz le pirate wrote: hum... is 'end of line' caracter important ? if not, you can do something like that : while (FILE) { chomp; if (/?/) { ... } } yes ? no ? Not really, because if the file is Mac line endings, then that will read the entire file in a

Re: Regex and Mac vs UNIX line endings

2006-07-20 Thread Peter N Lewis
I'm processing a string with embedded newlines. For testing I was storing the text in __DATA__ and slurping it into a string. This works fine. However when I read in a file, I'm having trouble with the line endings. Matching begining/end of logical lines is not working as I expect. Regexes like

Re: Formatting uploaded images

2006-02-15 Thread Peter N Lewis
At 14:52 + 15/2/06, Moisés Chicharro wrote: My main aims being: - check uploaded image filesize is not too large (most important) Others have explained how to do this. - check uploaded image physical pixel size This can be done relatively easily by parsing the JFIF tags. The

Re: Detecting file's line endings

2005-12-22 Thread Peter N Lewis
At 15:15 + 22/12/05, James Harvard wrote: I'm trying to detect a file's line endings (\r\n for DOS, \r for Mac and \n for Unix as I'm sure y'all know). Is there any easy way to do this? use Fcntl; sub get_line_ending_for_file { my( $file ) = @_; my $fh; sysopen( $fh, $file,

Re: How to find out if an application is running

2005-10-14 Thread Peter N Lewis
At 20:02 -0700 13/10/05, Ted Zeng wrote: Here is the fun part: I made a killapp.pl script and Call it to kill Bridge with `killapp.pl Bridge ` And it kills itself. As it turned out, the script finds itself from the list because the Command line includes Bridge(or Adobe Illustrator for

Re: CamelBones on Intel? Maybe not.

2005-06-08 Thread Peter N Lewis
My main question about the change to Intel is why the developer pack, whatever it was, costs so much? What do you get for your $999? I was expecting something free to download to developer members. As others have said, they throw in a computer. Keep in mind the Developer Transition System

Re: BBEdit/Interarchy

2005-06-03 Thread Peter N Lewis
the noise as we drift further and further off topic, but it seems ti just added more. At 23:27 +0800 3/6/05, Peter N Lewis wrote: We're getting a bit too esoteric to continue on the list, but this depends on the FTP server allowing rename/overwrite, which is far from guaranteed, even under unix

Re: What Perl editor do you recommend?

2005-03-02 Thread Peter N Lewis
Some friends have recommended vim and emacs to me. And one of the reasons is he can remotely edit a text file very easily. This has been mentioned a few times, but of course TextWrangler/BBEdit both support Edit via FTP/SFTP, so presuming you are SSHing to your target machine, then you can

Re: Taint mode (was Re: Variables in external file)

2005-02-20 Thread Peter N Lewis
Which reminds me... I've been using the #!/usr/bin/env perl shebang for easier distribution, but env doesn't like switches. Is there a way to set taint mode via `use` or the like (ala use warnings; for -w). I can't seem to locate anything in the manuals other than the -T flag. Correct me if I'm

Re: Setting the name of screenshots (etc)

2004-10-25 Thread Peter N Lewis
At 23:16 -0700 24/10/04, Rich Morin wrote: I find it a nuisance to have to hunt down the Picture #.pdf file to rename it. It seems as if there should be a more direct way to do this. For instance, I'd be happy to have a Open Dialog come up. Am I missing something obvious here? I found a cute

Re: ImageMagick/PerlMagick on Panther

2004-09-23 Thread Peter N Lewis
And finally, I guess, this is basically all I want to use the ImageMagick for: Image resizing. Image compression - jpg Finding image DPI Finding image size Clean up image (sharpen, etc.) Well, other than sharpen, you can actually do all that in Image Events which comes with Mac OS X (10.3?).

Re: BBEdit 8.0

2004-09-10 Thread Peter N Lewis
At 14:50 +1000 10/9/04, John Horner wrote: Multi-file regular expression find replace functionality, with nameable saveable expressions That's the killer-app feature for me. I could actually say that I think it's BBEdit that gave me my first glimpse of the power of Perl. Also, if you're a Perl

Re: Simple perl script send email

2004-05-03 Thread Peter N Lewis
\Mail is an incredibly complex thing, combine that with trying to handle IPC issues when shelling out, then you are reinventing a wheel that should definitely not be re-invented. Net::SMTP is an example, though probably a more difficult one, there are lots,

Re: Updating icons in OS X

2004-01-28 Thread Peter N Lewis
Currently I'm using AppleScript to work on files and then send them out to different folders on different servers. But I'm running into problems where users don't know that their file is finished because the icon doesn't appear in their folder. Generally they should appear if you touch the folder

Re: confusing bulltes

2004-01-11 Thread Peter N Lewis
At 9:02 PM -0500 11/1/04, Vic Norton wrote: When I write another script to print out the bytes under __DATA__, I see A5 if I execute the script from Terminal, and I see E2 80 A2 if I run the script fom BBEdit, either directly or Run in Terminal. But BBEdit can see A5. It just can't see it as

Re: AE Monitor

2003-12-11 Thread Peter N Lewis
At 10:50 PM -0800 10/12/03, Chris Nandor wrote: Anyone used this? http://www.apple.com/downloads/macosx/development_tools/aemonitor.html Downloading now, will be trying out laterish. It looks pretty cool, please tell us all what you think. Personally, I just recently used the AEDebug stuff in

Re: Can I run one Perl script from another ?

2003-10-02 Thread Peter N Lewis
Having spent hours trying to find a simple answer (learning lots along the way), I'm still hoping that there is a simple answer: Can I run one Perl script from inside another? I have a large set of scripts that I usually run one-at-a-time, but I want to create a controlling script so that I

Re: opening files whose names contain CRs?

2003-09-14 Thread Peter N Lewis
At 7:23 PM -0700 13/9/03, Rich Morin wrote: At 8:14 PM -0600 9/13/03, Doug McNutt wrote: Icon\r files appear when, in earlier Mac OS's, a folder ... This is interesting, but it doesn't answer the question of how one opens a file with this sort of name weirdness. Basically, I think I've found a

Re: OT: Mac OS X's built-in URL architecture

2003-07-14 Thread Peter N Lewis
At 10:25 AM +0900 15/7/03, Thilo Planz wrote: sherlock://com.apple.flights?new_windowtoolbar=hidden itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=Bohemian I am amazed by these sherlock:// and itms:// URLs. Does anyone know how this works, if everyone can

Re: head vs. head

2003-07-11 Thread Peter N Lewis
At 9:55 AM -0400 11/7/03, Sherm Pendley wrote: On Friday, July 11, 2003, at 09:26 AM, Elizabeth Mattijsen wrote: Surely the install script can be made smart enough to make [n] the default on Mac OS X? Even if the test is done in very general terms - i.e. if it were written to look for a

Re: copy files with everything?

2003-03-31 Thread Peter N Lewis
At 9:16 +0200 31/3/03, Wischnewski, Berndt wrote: copies just the file, but the resulting test2.doc has lost the icon, file type and creator. I think there must be a way, which I simply dont now. /Developer/Tools/CpMac usage: CpMac [-r] [-p] [-mac] source-path dest-path CpMac [-r] [-p]

Re: magic bullet needed for Perl upgrades on Mac OS X

2003-03-03 Thread Peter N Lewis
At 2:37 PM +1100 2/3/03, Charlie Garrison wrote: On 28/2/03 at 12:39 PM, Peter N Lewis [EMAIL PROTECTED] wrote: In that case, don't even think about trying to build a smaller bundle - people in general will not even blink before 10MB these days, and in general wont worry about it until

Re: no-no?

2003-03-02 Thread Peter N Lewis
At 11:38 AM -0600 1/3/03, Ken Williams wrote: Actually, since I've done this, installing 5.8 over your stock perl does not seem to cause any problems in general. Maahahahahah, NOT YET, it hasn't! Grin. Actually, I tend to do these kinds of bad idea perl installations from time to time,

Re: magic bullet needed for Perl upgrades on Mac OS X

2003-02-27 Thread Peter N Lewis
At 9:39 PM -0500 27/2/03, Sherm Pendley wrote: It seems like it would bulk up the download, though. For many folks, disk space is plentiful - but bandwidth is not. You can actually probably ignore this issue. I always felt this way, but reality is that almost no on cares. Look at the stats for

Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Peter N Lewis
eh, is not possible to get the values in parens when you do a reg match on an evaled string ? Yes, it is. consider the snippt below, how do i get the values into $1, $2 etc ... It'd be easier to explain exactly what you are trying to do. my $str = /(.{11})(.{10})/i; This assigns the result of a

Re: Non-Perl but baffling question

2003-02-25 Thread Peter N Lewis
And, now that I try it, it also looks inaccurate: % sw_vers | grep 'ProductVersion' | awk '{print $2}' 10.2.4 % osascript -e 'tell application Finder to version' 10.2.1 Not inaccurate as such. The latter returns the Finder application version. Presumably the former returns the

Re: Announcement: PerlPad 0.1

2003-02-09 Thread Peter N Lewis
At 9:51 +0900 10/2/03, Thilo Planz wrote: Hi all, I have been playing around with Camelbones a little and placed my results on SourceForge: http://perl-pad.sourceforge.net/ Looks like the compiled binary is locked to perl 5.6, so it doesn't work for me with perl 5.8. I could try to compile

Re: A small Type and Creator weirdness

2003-02-06 Thread Peter N Lewis
At 16:44 -0800 6/2/03, Rich Morin wrote: I'm using MacOSX::File::Info to get the Type and Creator codes for files. In trying to print these (e.g., via NSLog and in an NSTextView), I ran into a peculiar symptom: not only did the code not print, any following information on the line also

Re: where to put things?

2003-01-16 Thread Peter N Lewis
At 1:07 -0800 16/1/03, Rich Morin wrote: I then noticed that the script (and any daemons it might start up) was running as root. Ungood. I worked around the problem by setting the script setuid nobody, but this is not a really robust solution. I also filed a bug, suggesting that Apple add a

Writing a Services plugin in Perl?

2003-01-03 Thread Peter N Lewis
Has anyone written (or know how to) write a Services plugin in Perl? Perhaps it can be done with CamelBones, but I'd prefer pure perl if possible (maybe with some inlines if necessary would be ok). Thanks, Peter. -- http://www.interarchy.com/ http://download.interarchy.com/

Re: No output (Newbie question)

2002-12-16 Thread Peter N Lewis
#! line, permissions on the script, location of perl, etc. seem to be ok. But when I try to run a script I get no result. No error message, no hello world printed to the terminal. Tried redirecting output to a file, but file was empty. Check the line endings on the file, this is a classic

Re: closing and opening a browser

2002-12-10 Thread Peter N Lewis
At 13:47 -0800 10/12/02, Adam Wells wrote: One good way is to use AppleScript for both of these, with the osascript command. The following simple AppleScript will kill Internet Explorer: - tell application Internet Explorer quit end tell - Not that this is an AppleScript list, but

Re: OT: CVS clients and BBEdit diff tool ...

2002-11-27 Thread Peter N Lewis
BBEdit diff: I want a bbdiff command-line program. Something that will let me type: bbdiff file1 file2 or bbdiff dir1 dir2 to initiate a file comparison or multi-file comparison in BBEdit. Ideally, Bare Bones would include something like this along side the bbedit command-line tool, but I

Re: unix or mac-style text files?

2002-11-25 Thread Peter N Lewis
At 13:51 + 25/11/02, Nicholas Clark wrote: On Mon, Nov 25, 2002 at 02:33:45PM +0100, Rafael Garcia-Suarez wrote: Chris Nandor [EMAIL PROTECTED] wrote: That shouldn't work. By the time you get to it in the script, if you have a #! line, then the entire script is one long comment, and

Re: unix or mac-style text files?

2002-11-25 Thread Peter N Lewis
At 15:09 +1100 26/11/02, Ken Williams wrote: On Tuesday, November 26, 2002, at 12:49 PM, Peter N Lewis wrote: But is there any reason the # comments are not terminated by the first occurrence of *either* \012 or \015? There's nothing perl can do about this - the OS (in fact, the kernel, I

Re: No bell

2002-11-21 Thread Peter N Lewis
At 9:42 + 21/11/02, John Delacour wrote: Now why don't I get a bell but when I do ( print \a ) or ( print \007 ) in 10.2.2/Perl5.8.0? It works fine in MacPerl and no character is printed but in OS 10 the only way I've found is: $/ eq \015 and `osascript -e beep` ; which slows things

Re: unix or mac-style text files?

2002-11-20 Thread Peter N Lewis
At 13:22 + 20/11/02, John Delacour wrote: if (/\015\012/) { $/ = \015\012 ; } elsif (/\015/) { $/ = \015 ; } else { $/ = \012 ; } You can do this with one regular expression which will pick up the first line ending: $/ = /(\015\012|\015|\012)/ ? $1: \n; Note that because

Re: unix or mac-style text files?

2002-11-19 Thread Peter N Lewis
At 16:30 -0800 19/11/02, Heather Madrone wrote: I've already encountered a few text file anomalies on OS X. Most GUI applications seem to default to Mac-style text files (linefeeds only), but shell programs such as vi do not handle Mac-style text files gracefully. Is perl on the Mac going to

Re: unix or mac-style text files?

2002-11-19 Thread Peter N Lewis
At 19:01 -0800 19/11/02, gene wrote: An alternative is to read the entire file in (undef $/) and then split it: My suggestion is to put some code like this in your script: It's a good solution. Probably for files less than a few hundred k it makes no difference (since you'll need to read

Re: PerlMagick dyld errors

2002-11-17 Thread Peter N Lewis
If you do ensure your fink Trees: has the unstable/main in it, and do: fink selfupdate-cvs then I think it will install imagemagick-nox for you without any problems. Unfortunately, perlmagick-pm still seems to be a version of imagemagick back and so it needs to be installed manually. Anyway,

Re: Darwin darwin or darwin6.0

2002-11-17 Thread Peter N Lewis
At 11:39 -0800 16/11/02, drieux wrote: [jeeves: 1:] perl -MConfig -e 'print $Config{osname} \n; ' As for how this gets set - it gets set when your version of perl is built for that specific OS. which in turn is stored in Config.pm, typically somewhere like /Library/Perl/darwin/Config.pm or

Re: OS X Installed numbers (Was Re: mac-toolbox)

2002-11-15 Thread Peter N Lewis
At 7:58 -0500 15/11/02, [EMAIL PROTECTED] wrote: Well, I for one, use Maya from SGI|Alias|Waefront - and it doesn;t support 10.2 - there are a number of dialog boxen which get very screwed up by it. Are there any other packages which work under 10.1- not in 10.2+ ? Yes, there have been quite

Re: BBEdit 7.0

2002-11-13 Thread Peter N Lewis
At 14:18 -0500 13/11/02, John Siracusa wrote: On 11/13/02 11:46 AM, Adrian Howard wrote: And CVS support too! Excellent! Hrm, not so excellent for me so far...it just hangs with the connecting dialog box and then fails. CVS works fine from the command line. Maybe BBEdit isn't picking up my

Re: BBEdit 7.0

2002-11-13 Thread Peter N Lewis
? Possibly Anarchie 4.0 --Peter N Lewis, 12/99) (glad to see they finally made it ;) Yeah, must be one of those features we've run out of, or maybe something not too difficult we could implement ;-) Peter. -- http://www.interarchy.com/ http://download.interarchy.com/

Re: PerlMagick dyld errors

2002-11-12 Thread Peter N Lewis
Sigh, here is yet another account of making ImageMagick and Perl work. I just upgraded to 10.2. So I cleaned out my perl installation and installed perl 5.8 (ok, so this is living a bit on the edge). To get ImageMagick working I did this: fink install imagemagick-nox sadly it could not find

Re: segmentation fault when searching for repeated text

2002-11-12 Thread Peter N Lewis
The following code ends up with an error (segmentation fault): $_ = 'x' x 1000; /(a.|.){2,}/o; The segmentation fault seems to happen only when the searched text ($_ in this example) is longer than 855 characters. I know that m and n in the {m,n} qualifier are limited, but there isn't a

Re: ImageMagick, PerlMagick, and OSX web server

2002-11-04 Thread Peter N Lewis
At 11:42 -0600 4/11/02, Bill Stephenson wrote: Thanks Randal! I've wanted to play with PerlMagick for years. I've played with ImageMagick but never got PerlMagick installed. I'm gonna have to try it our now. It is quite amazing. I had a really old newsletter that I want'ed to make available,

Re: Why is 27 special?

2002-10-10 Thread Peter N Lewis
At 3:09 -0500 10/10/02, _brian_d_foy wrote: this means that the 20 fixed bytes between the volume name and the date, which are \000 in every case i looked at, is really 27 - (length of volume name). i can name partitions with names up to 27 characters, but if i go past that it look like it

Re: about .command and .term

2002-07-15 Thread Peter N Lewis
At 16:20 -0600 14/7/02, Charles Albrecht wrote: I use .term files by editing the ExecutionString value in the XML to have... keyExecutionString/key stringssh foo.bar.baz; exit/string behave as I want it to behave. Furthermore, I toss frequently-used .terms into

Re: cpan oddness

2002-07-03 Thread Peter N Lewis
At 14:33 -0400 3/7/02, Sherm Pendley wrote: Judging by the path displayed here, you were a little quick on the trigger, and answered 'y' when the configuration requsted a pathname. Don't feel bad, it's happened before - check the list archives. :-) Hmmm, if it has happened before, perhaps it

Re: Serial ports?

2002-06-24 Thread Peter N Lewis
At 9:39 + 24/6/02, Tor Hildrum wrote: Somewhere around test 85 the Mac crashes badly. Even from user mode. That is strange. The kernel shouldn't really panic, unless you where running this process in kernel space. Trying to access an I/O port or hardware-mapped memory shouldn't give you

Re: FYI: Successful Install of Perl 5.8.0 RC 1 + Apache 2.0.36 + ModPerl-2.0 on OSX 10.1.4

2002-06-04 Thread Peter N Lewis
At 14:05 -0700 4/6/02, Alex S wrote: I'd prefer to see if we could convince the developers at Apple to use a better file system. I'm hoping that one of the new people on the core Apple dev team (forget his name at the moment), who is a filesystems guy, is there to make that all better! A

Re: Native graphics support?

2002-05-16 Thread Peter N Lewis
At 19:08 -0700 15/5/02, The Ogre wrote: Ok, I'm close to giving up, and that's not like me... If there's more than one way to do it, please somebody show me one... OroborOSX over XDarwin seems to be the closest approximation I've found. Please, a ray of light, I beg of you. They can do it in

Re: puzzling results from missing she-bang

2002-04-28 Thread Peter N Lewis
At 22:09 -0400 28/4/02, Michael Turner wrote: Thanks for your response. I remain puzzled, however. Your response seems to imply that if I invoke print from the command line, it will be interepreted. This is not the case, it errors. Sure it will - if you are using the sh shell. Try this:

Re: Permanently add INC directory? - summary

2002-04-23 Thread Peter N Lewis
Is there any way to globally add an INC directory to Perl after compilation? But it doesn't get set when I run Perl from within BBEdit or cron. Is there any way to do this so it is truly global (it can just be across me as the user or for all users, since I'm the only user anyway, as long as

Re: imagemagick, fink, versions, ick.

2002-04-18 Thread Peter N Lewis
PROTECTED] Mime-Version: 1.0 X-Sender: peter@pop Date: Fri, 12 Apr 2002 17:07:11 +0800 To: MacOSX Perl [EMAIL PROTECTED] From: Peter N Lewis [EMAIL PROTECTED] Subject: Getting ImageMagick/PerlMagick to work Hi all, I finally got ImageMagick to install and work for me, perhaps this will help

Getting ImageMagick/PerlMagick to work

2002-04-12 Thread Peter N Lewis
Hi all, I finally got ImageMagick to install and work for me, perhaps this will help someone else... I think pert of the problem might be that I have perl 5.6.1 installed. Anyway, I eventually got it to install by using fink, but then it failed because it wanted _ParseGeometry, which I think

Re: [Fink-users] Re: is my perl tarnished?

2002-04-03 Thread Peter N Lewis
At 18:31 -0600 3/4/02, Chris Devers wrote: So is it Storable.pm that's corrupted? Think it'll help to rebuild it? I have some memory of reading something where Storable was used with a lowercase s, and so it was loaded (successfully, because of the case insensitivity) and then not found next

Re: CPAN problems? dyld: perl Undefined symbols?

2002-03-25 Thread Peter N Lewis
At 11:28 +0800 21/3/02, Peter N Lewis wrote: But when I try to use CPAN, I get these errors: cpan install Bundle::CPAN dyld: perl Undefined symbols: _PerlIO_getc _PerlIO_putc _PerlIO_read _PerlIO_write _Perl_sv_2pv_flags Ok, it turns out my problem was either my library path or not running

CPAN problems? dyld: perl Undefined symbols?

2002-03-20 Thread Peter N Lewis
I've installed perl 5.6.1, and I just did an install of CPAN 1.59 from http://www.cpan.org/authors/id/A/AN/ANDK/CPAN-1.59.tar.gz But when I try to use CPAN, I get these errors: cpan install Bundle::CPAN dyld: perl Undefined symbols: _PerlIO_getc _PerlIO_putc _PerlIO_read _PerlIO_write

Newline independence?

2002-02-17 Thread Peter N Lewis
Is there any good way to read a file in a way that is independent of the newlines used in that file? Mac typically uses CR line endings. Unix typically uses LF line endings. And DOS Network (eg HTTP, FTP, etc) typically use CRLF line endings. Ideally, it would be possible to set $/ to

Re: Applescript call from Perl

2002-02-07 Thread Peter N Lewis
At 21:13 -0500 7/2/02, Brad Rice wrote: How do you call Applescript from Perl? I want to make a CGI that runs an applescript. In MacPerl, use: MacPerl'DoAppleScript(END_SCRIPT); tell application Finder move alias $folder to trash end tell END_SCRIPT I believe