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

Re: Re: [MacPerl] Suggestion for a MacPerl Extension



PVHP@LNS62.LNS.CORNELL.EDU, writes:
: 1) Is there a way to call Internet Config to fire up the browser & look at 
:    the localhost file? Scripting like that would seem to 
:    be more Mac-platform independent (I could then copy script over to
boss's 
:    Mac & have it use his favorite browser e.g.)
:    From what I have seen of Internet Config docs it appears to support only
C 
:    function calls and I have not seen any obvious XS code that will allow a

:    MacPerl call to Internet Config. Did I overlook something?

Have a look at Leonard Rosenthol's IC Scriptor, a scriptable app which is
basically an interface between OSA and Internet Config. You could either use
Apple Script to tell it to feed a URL to Internet Config or possibly send
Apple Events to it directly from MacPerl (not sure how this works as I've not
yey experimented with such).

Alternately it might be possible to write an external for MacPerl to
accomplish this. The API for Internet Config is very easy to work with, and
IC does pretty much all the work for you - it only took me half an hour to
add a menu item to an app I'm working on which uses IC to launch a web page.
But I don't know how easy the MacPerl side of this would be.

John
--
John Blackburne - programmer, writer, consultant, trainer
Perl, AS, QD3D and more at http://www.hk.super.net/~johnb