Re: Listing URLs in open browsers
Re: Listing URLs in open browsers
- Subject: Re: Listing URLs in open browsers
- From: Greg Strange <email@hidden>
- Date: Sat, 11 Aug 2001 20:44:01 -0500
on 8/11/01 8:14 PM, Tobias Lidskog at email@hidden wrote:
>
Hi
>
I'd like to use AppleScript to produce a list of the URLs (and possibly
>
page titles as well) of all pages that are currently displayed in web
>
browsers running on the machine. However I feel that this is a bit too
>
complicated for my limited AppleScript knowledge, and would be very
>
grateful for any tips (and perhaps code snippets as well) on how to do
>
this nicely. I need this to work on OS X.
>
Just by looking at the dictionaries I see that at least Opera, iCab and
>
Internet Explorer use the same suite for this, while OmniWeb differs. My
>
guess is that the script should involve a hard coded loop for every
>
browser I'd like to support, and that each loop should start by
>
examining if that particular app is running at the moment.
>
>
Thanks in advance
>
/Tobias
Eh, sort of. I just posted an AppleMods called getHREFs that when passed
text will strip out all URLs and return them in a list.
<
http://www.applemods.com/>
That link will put you on the front page where every mod added in the
current month is displayed.
Given this snippet (which should work on X but not tested), all you would
really need to do is have different code for getting the pages from the
browsers and then pass the pages to the mod.
HTH,
Greg Strange
__________________________________________________________________
Writing AppleScripts? Got a bunch of code snippets laying around?
Want to add them to a list of modules that every scripter could use?
Go to
http://www.applemods.com