• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Listing URLs in open browsers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Listing URLs in open browsers (From: Tobias Lidskog <email@hidden>)

  • Prev by Date: Listing URLs in open browsers
  • Next by Date: Quark-bold uppercase paragraphs
  • Previous by thread: Listing URLs in open browsers
  • Next by thread: Re: Listing URLs in open browsers
  • Index(es):
    • Date
    • Thread