Re: Scripting Mail.app on 10.3.2?

2004-01-22 Thread Paul McCann
Hi John, you asked... > Can you provide a real working example. I find the Synopsis of > IPC::Run a little obscure. It's expecting an arrayref in the first slot: here's a trivial, but working, example. --- #!/usr/bin/p

Re: Scripting Mail.app on 10.3.2?

2004-01-22 Thread John Delacour
At 5:14 pm -0600 21/1/04, Ken Williams wrote: I think IPC::Run can do this nicely, but I haven't exactly tested it: use IPC::Run qw(run); run('osascript', \$ass, \$asresult); Can you provide a real working example. I find the Synopsis of IPC::Run a little obscure. Thanks. JD

Re: Scripting Mail.app on 10.3.2?

2004-01-21 Thread Ken Williams
On Friday, January 16, 2004, at 06:56 PM, John Delacour wrote: At 4:16 pm -0800 16/1/04, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Delacour) wrote: $asresult = `osascript -e '$ass'`; FWIW: this is a bit dangerous, and slow. You would need to make sure the s

Re: Scripting Mail.app on 10.3.2?

2004-01-16 Thread John Delacour
At 12:56 am + 17/1/04, I wrote: However the applet method is very fast. I need to work out the semaphore bit because the Finder is too slow to update and you can't rely on modification times. I have now got the backgrounded applet and the perl subroutine working predictably and consistent

Re: Scripting Mail.app on 10.3.2?

2004-01-16 Thread John Delacour
At 4:16 pm -0800 16/1/04, Chris Nandor wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Delacour) wrote: $asresult = `osascript -e '$ass'`; FWIW: this is a bit dangerous, and slow. You would need to make sure the script did not contain any bad shell characters combined with a waywa

Re: Scripting Mail.app on 10.3.2?

2004-01-16 Thread Chris Nandor
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Delacour) wrote: > $asresult = `osascript -e '$ass'`; FWIW: this is a bit dangerous, and slow. You would need to make sure the script did not contain any bad shell characters combined with a wayward '. A far safer, and much faster (esp.

Re: Scripting Mail.app on 10.3.2?

2004-01-16 Thread John Delacour
At 11:44 am -0600 16/1/04, Paul R Brown wrote: I would like to be able to use bogofilter directly from within Mail.app for a number of reasons, and because AppleScript doesn't have a concept of pipes (do shell script can't handle input over 64kb), I'd like to find a solution to run a call-bac

Scripting Mail.app on 10.3.2?

2004-01-16 Thread Paul R Brown
I would like to be able to use bogofilter directly from within Mail.app for a number of reasons, and because AppleScript doesn't have a concept of pipes (do shell script can't handle input over 64kb), I'd like to find a solution to run a call-back from the command line of the form: program a1