[MacPerl] ignorable test

2001-11-15 Thread Doug McNutt
My ISP claims his blacklist problem has been fixed. Please forgive this short test.

Re: [MacPerl] FLOCK

2002-01-09 Thread Doug McNutt
At 19:39 -0500 1/9/02, Chris Nandor wrote: >flock() is rarely necessary in MacPerl. Mac OS won't allow more than one >app to write to a file at one time, usually, anyway. If that's the case why can't I attempt to access a file, for writing, in the process of being downloaded by either MacPerl'

Re: [MacPerl] Edit Postscript file

2002-03-04 Thread Doug McNutt
> >>I tried to edit postscript files with perl, but no I reconiced that perl >>>changes the line ending charackters even if I only open the file and save it > >>in a new file. Some postscript files - especially the PDF variety - depend on absolute indexing by character location. If you are repla

Re: [MacPerl] Off topic: Setting Creator Code and Type via command line on OS X

2002-10-18 Thread Doug McNutt
At 11:08 -0700 10/17/02, Noah Hoffman wrote: >Does anyone know how to set the creator code and type of a file via the command >line on OS X? I am told that the MPW command setfile -t 'TYPE' -c 'CRTR' filepath(s) works as it always did but I haven't tried it. man setfile ought to confirm it.

Re: [MacPerl] Raw data to ASCII

2003-01-25 Thread Doug McNutt
So you want to read a PICT file and convert it to coordinates with 8 bit precision? The problem sounds interesting but it's not yet defined. Is the PICT file limited to draw line commands with endpoints? At 17:54 -0300 1/25/03, Ricardo Montiel wrote: >I need to convert lots of diagrams as the en

[MacPerl] Perl calling AppleScript

2004-01-15 Thread Doug McNutt
I just saw this on the AppleScript mailing list. John is probably not a member of this list but I'll bet someone here can help off list. Isn't there a module available? To: [EMAIL PROTECTED] From: John DeYoung <[EMAIL PROTECTED]> Begin copy Apologies for being a little off-topic... I

Re: [MacPerl] Do shell script AppleScript impossible from MacPerl?

2004-02-17 Thread Doug McNutt
At 23:44 +0900 2/17/04, Iyanaga Nobumi wrote: >As the subject line says, I would like to ask you if it is impossible to call "do >shell script" from MacPerl, using MacPerl::DoAppleScript($script). I hate it when someone asks me the famous question, "why would you ever want to do that" but in thi

Re: [MacPerl] Do shell script AppleScript impossible from MacPerl?

2004-02-18 Thread Doug McNutt
At 21:50 -0800 2/17/04, Chris Nandor wrote: >You can call Mac OS X apps from MacPerl under Classic, so if some other >application provided an event like do shell script, you could use it. I haven't tried it but I am told that a #!/usr/bin/tcsh script can be made executable in the sense that Finde

Re: [MacPerl] Do shell script AppleScript impossible from MacPerl?

2004-02-19 Thread Doug McNutt
At 16:05 -0800 2/19/04, Walt Pawley wrote: >I created a folder chain - >/Users/wump/Desktop/muck/thescript.app/Contents/MacOS/ I am testing a tcsh script that automates the process. It works but I need to do some more error checking. It's probably possible to create an AppleScript interface s

Re: [MacPerl] Do shell script AppleScript impossible from MacPerl?

2004-02-20 Thread Doug McNutt
Should download a tcsh script that will make a target script with a #! line into a double-clickable application in the same folder as the target script. It ought to work with perl or an ANSI c compiled app but the only tests were with

[MacPerl] [ANN] Making scripts into applications in OS neXt

2004-02-21 Thread Doug McNutt
A previous thread involved calling a shell script from MacPerl even though the operating system was OS neXt and real perl was available. This led me to the problem I have seen before which is how to make a UNIX executable into an application which can be double-clicked from the finder or "opene

Re: [MacPerl] MPW - MacPerl

2001-01-26 Thread Doug McNutt
>#! -tw >use CGI ':standard'; These are in my MPW startup file. The stuff in MPP&E and the distribution are a more obscure way to get it done. It also adds menu items to MPW that you may never use. Note that I use a command alias while the distribution will add the perl folder to the sear

Re: [MacPerl] automating script that uses command line?

2001-01-29 Thread Doug McNutt
>Sorry for what I'm positive is a dopey question. It's been around for the whole life of MacPerl. There are workarounds and I'm sure someone will point them out. Personally I use the MPW tool version of MaPerl. It allows a full command line just as you are used to. There is also a feature of M

Re: [MacPerl] OT: Reply-to and minimal munging

2001-02-02 Thread Doug McNutt
>Where is this 'Scripts' folder? Does it matter what name we give your >AppleScript file? http://www.eudora.com/techsupport/kb/2135hq.html ftp://ftp.qualcomm.com/eudora/eudorapro/mac/extras/scripting/ Looks interesting. AppleEvents from MacPerl . . . -- -> From the U S of A, the only socialist

Re: [MacPerl] Grab a web page

2001-03-02 Thread Doug McNutt
>How can I grab a web page (with graph and picts) with a perl script? Robin's answer is right but beware of pages using the https (secure) protocol. There is no port to the Mac for that. I have had some success using appleevents sent to Netscape but it's not perfect because Netscape doesn't sen

[MacPerl] Open for exclusive access - grab a web wage

2001-03-04 Thread Doug McNutt
Abstract: 1) MacPerl open() call does not demand exclusive access for writing. 2) MPW tool version induces system crash. 3) stat() $nlink doesn't work. A recent thread "grab a web wage" has caused me to go back into some scripting I did to access daily prices for mutual funds that don't publish

Re: [MacPerl] Library access in MPW

2001-03-19 Thread Doug McNutt
>How do I set the search paths for MacPerl under MPW? There is a complicated way - use the MPW install script that comes with the download. I don't. Below is the full content of my startup script in "{MPW}Startup Items" # The path to the MacPerl libraries and documentation' Set -e MACPERL "

Re: [MacPerl] Reading pdf files

2001-03-26 Thread Doug McNutt
I have been toying with adding stuff to *.pdf files in cgi, graphs in particular. PDFs created by PDFwriter or Distiller typically make extensive use of the flate/deflate compression package in a way that, when reading a pdf directly, one has to go through the process of decompression before mu

Re: [MacPerl] Transfering a script from unix to a mac.....

2001-04-18 Thread Doug McNutt
Someone needs to say it: Apple's MPW - Macintosh Programmer's Workshop - is a command line interface to the MacOS. It does support commands like rm and ls with different spelling. Serious UNIX users complain that it's not enough like a real shell but it's a whole lot closer than the Macintosh

Re: [MacPerl] arguments in command line

2001-04-30 Thread Doug McNutt
Arguments in the perl command line are handled well in the MPW tool version of MacPerl. They behave just like UNIX. (Well - I'll get an argument about MPW being not enough like UNIX) In any case, until MacOS neXt takes over, MPW is the way to go for testing scripts destined for UNIX boxes. f