• 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: What's URL are you showing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's URL are you showing


  • Subject: Re: What's URL are you showing
  • From: gohaku <email@hidden>
  • Date: Tue, 6 Jul 2004 21:47:31 -0400

On Jul 6, 2004, at 12:21 PM, Mark Thomas wrote:

Hi,
Sorry for the cross-post but, Does anyone know if it possible from another
processes to find out what the URL which the browser is showing i.e. Safari
or IE ..etc.

For Safari, type and then run the following in Script Editor (/Applications/Applescript/):

tell application "Safari"
get the do JavaScript "document.URL" in document 1
end tell

For IE, you'll have to take a look at IE's dictionary.
I tried but kept on opening IE Classic instead of IE native.

If you prefer to use Java, take a look at the following article(Controlling your Mac with Applescript and Java):
http://www.macdevcenter.com/pub/a/mac/2003/02/25/apple_scripting.html

HTH,
-gohaku
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


References: 
 >What's URL are you showing (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: What's URL are you showing
  • Next by Date: How to delete a socket in the file system
  • Previous by thread: Re: What's URL are you showing
  • Next by thread: How to delete a socket in the file system
  • Index(es):
    • Date
    • Thread