Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-14 Thread Bart Lateur
On Fri, 13 Apr 2001 07:48:27 -0400, Paul J. Schinder wrote: >And, for similar reasons, LISP stands for "Lots of Idiotic Stupid Parentheses". I thougt the S stood for Superfluous... >Now if we could only come up with something for Python and all the >stupid tabs... Put Your Tabs Here O

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-13 Thread John W Baxter
At 11:18 -0400 4/13/01, Chris Nandor wrote: >At 07:48 -0400 2001.04.13, Paul J. Schinder wrote: >>Now if we could only come up with something for Python and all the >>stupid tabs... > >Please You Tab-Hit Often and Necessarily appending: or space out. -- John Baxter [EMAIL PROTECTED] P

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-13 Thread Chris Nandor
At 07:48 -0400 2001.04.13, Paul J. Schinder wrote: >Now if we could only come up with something for Python and all the >stupid tabs... Please You Tab-Hit Often and Necessarily -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Development Network[EMAIL P

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-13 Thread Paul J. Schinder
At 7:55 PM -0700 4/12/01, John W Baxter wrote: >At 0:33 +0900 4/13/01, Gero Herrmann wrote: >> $path =~ s/(["\\])/\\$1/g; >> $url =~ s/(["\\])/\\$1/g; > >It is this sort of thing which led, years ago, to the coining of "LTS" or >"leaning toothpick syndrome" to describe the effect. Havi

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-12 Thread John W Baxter
At 0:33 +0900 4/13/01, Gero Herrmann wrote: > $path =~ s/(["\\])/\\$1/g; > $url =~ s/(["\\])/\\$1/g; It is this sort of thing which led, years ago, to the coining of "LTS" or "leaning toothpick syndrome" to describe the effect. Having to use \ to escape \ in an 'outer' language only

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-12 Thread Chris Nandor
At 15:56 +0100 2001.04.12, Alan Fry wrote: >> >I find incidentally that the version of InternetConfig.pm in MacPerl >>>5.6.2 does not work with MacPerl 5.2.1a1. Is that to be expected I >>>wonder? >> >>Hm, I haven't looked at it; what about it doesn't work? > >This error message: > >"# Can't

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-12 Thread Gero Herrmann
At 11:25 -0400 2001-04-11, Chris Nandor wrote: >At 17:24 +0200 2001.04.11, Bart Lateur wrote: >>On Wed, 11 Apr 2001 08:51:12 -0400, Chris Nandor wrote: >> >>> $path =~ s/"/\"/g; >>> $url =~ s/"/\"/g; >> >>I don't think this will do much. You must have forgotten to double the >>backslashes

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-12 Thread Alan Fry
At 7:15 pm -0400 11/04/01, Chris Nandor wrote: >GetURL works in place of the ICLaunchURL calls. This is its implementation: > > sub GetURL { > my $url = shift or return; > ICGeneralFindConfigFile($ICInstance); > ICLaunchURL($ICInstance, 0, $url); > } > >N

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-12 Thread Alan Fry
> >So the creator string could be handed off to >>"ICLaunchURL($ICInstance, 0, $url)" to do the business without the >>user needing to know anything of the technicalities going on behind >>the scenes. > >Alan, I'm not sure how to apply the creator string to ICLaunchURL. >Would $ICInstance conta

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Chris Nandor
At 23:41 +0100 2001.04.11, Alan Fry wrote: >At 8:51 am -0400 11/04/01, Chris Nandor wrote: >>* If you have the Mac::InternetConfig from the cpan-mac distribution, you >>can [use GetURL($url)], instead of the three lines of code you (Morbus) have: > >The point being that the browser could be launch

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Alan Fry
At 9:29 am -0400 11/04/01, Morbus Iff wrote: >This, although usable for technically savvy people, wouldn't work >for the program's audience. A larger portion of people know where >programs are located on their hard drive. On a side note, though, >does asking for the creator string allow me to s

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Bart Lateur
On Wed, 11 Apr 2001 11:34:30 -0400, Morbus Iff wrote: > >>> $path =~ s/"/\"/g; > >>> $url =~ s/"/\"/g; > >> > >>I don't think this will do much. You must have forgotten to double the > >>backslashes. > > > >Oops! > >Well, it looks like I'm the horribly confused ... What'd I'd miss? The fact

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Chris Nandor
At 11:34 -0400 2001.04.11, Morbus Iff wrote: > >>> $path =~ s/"/\"/g; > >>> $url =~ s/"/\"/g; > >> > >>I don't think this will do much. You must have forgotten to double the > >>backslashes. > > > >Oops! > >Well, it looks like I'm the horribly confused ... What'd I'd miss? Script: $

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Morbus Iff
>>>$path =~ s/"/\"/g; >>>$url =~ s/"/\"/g; >> >>I don't think this will do much. You must have forgotten to double the >>backslashes. > >Oops! Well, it looks like I'm the horribly confused ... What'd I'd miss? Morbus Iff .sig on other machine. http://www.disobey.com/ http://www.

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Morbus Iff
>> $path =~ s/"/\"/g; >> $url =~ s/"/\"/g; > >I don't think this will do much. You must have forgotten to double the >backslashes. Bart, Chris was escaping the quotes so that the Applescript doesn't read them as the end of it's command. For example: $path = qq[MacHD:my "secret"

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Chris Nandor
At 17:24 +0200 2001.04.11, Bart Lateur wrote: >On Wed, 11 Apr 2001 08:51:12 -0400, Chris Nandor wrote: > >> $path =~ s/"/\"/g; >> $url =~ s/"/\"/g; > >I don't think this will do much. You must have forgotten to double the >backslashes. Oops! -- Chris Nandor [EMAI

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Bart Lateur
On Wed, 11 Apr 2001 08:51:12 -0400, Chris Nandor wrote: > $path =~ s/"/\"/g; > $url =~ s/"/\"/g; I don't think this will do much. You must have forgotten to double the backslashes. -- Bart.

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Alan Fry
At 2:19 pm +0200 11/04/01, Bart Lateur wrote: >On Wed, 11 Apr 2001 13:05:23 +0100, Alan Fry wrote: > >>You could, on launching the runtime, put up a dialog with >>MacPerl::Ask() and set a global variable; >> >> $SETTINGS->{creator} = MacPerl::Ask("Enter browser creator >>type", "MOSS"); > >

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Chris Nandor
At 09:36 -0400 2001.04.11, Morbus Iff wrote: > >* AppleScript, with path > > > > $path =~ s/"/\"/g; > > $url =~ s/"/\"/g; > > MacPerl::DoAppleScript(qq[tell application "$path" to GetURL "$url"]); > >This looks the most viable to me. As in the other message, overriding for >the Mac us

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Morbus Iff
>>However that would not seem to me to offer much advantage over the >>default Mac arrangement. It is after all very easy to change the >>default browser type in InternetConfig by the 'Internet' Control >>Panel. It strikes me it might be unlikely the user would choose a >>different browser fo

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Morbus Iff
>>What I'm looking to do is give the user a choice besides their default >>browser - they'd pass the full file path to the browser in question. I, in >>turn, would instruct that file/app to open $url. >> >>Ultimately, I'm looking to duplicate the following: >> >>unless( fork ) { exec("/

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Chris Nandor
At 13:05 +0100 2001.04.11, Alan Fry wrote: >However that would not seem to me to offer much advantage over the >default Mac arrangement. It is after all very easy to change the >default browser type in InternetConfig by the 'Internet' Control >Panel. It strikes me it might be unlikely the user wou

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Bart Lateur
On Wed, 11 Apr 2001 13:05:23 +0100, Alan Fry wrote: >You could, on launching the runtime, put up a dialog with >MacPerl::Ask() and set a global variable; > > $SETTINGS->{creator} = MacPerl::Ask("Enter browser creator type", "MOSS"); Better use a "choose file" dialog, and get the creator typ

Re: [MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-11 Thread Alan Fry
At 7:25 pm -0400 10/04/01, Morbus Iff wrote: >Good day, all. Currently, in a script of mine, I use the following code to >launch the default browser on the users' machine to a specific URL: > >use Mac::InternetConfig qw(:DEFAULT $ICInstance); >ICGeneralFindConfigFile($ICInstance); >IC

[MacPerl] Processes, Command Parameters, and Other Apps...

2001-04-10 Thread Morbus Iff
Good day, all. Currently, in a script of mine, I use the following code to launch the default browser on the users' machine to a specific URL: use Mac::InternetConfig qw(:DEFAULT $ICInstance); ICGeneralFindConfigFile($ICInstance); ICLaunchURL($ICInstance, 0, $url); What I'm looking to d