Re: getting URL of front web page (addendum)
Re: getting URL of front web page (addendum)
- Subject: Re: getting URL of front web page (addendum)
- From: Jeffrey Mattox <email@hidden>
- Date: Wed, 26 Mar 2003 19:55:34 -0600
Okay, smart guys -- how about getting the current URL from Netscape?
Jeff
At 10:23 PM +0000 3/26/03, Mr Tea wrote:
This from Mr Tea - dated 26/3/03 10714 pm:
This from OzSprings - dated 26/3/03 9731 pm:
Is is possible to Applescript copying the URL of the frontmost web
page from Safari (which is what I am using) or another browser?
Yes. The precise terminology required needs to be checked in each browser's
scripting dictionary, but a Safari to IE transfer would look like this:
--===========================================================
tell application "Safari" to set theURL to URL of the front document
tell application "Internet Explorer" to OpenURL theURL
--===========================================================
Er, I read the last three words of the passage I quoted as '_to_ another
browser', rather than 'or'. Which is why the script I proposed effected a
browser to browser transfer. Useful for pages that don't work right in
Safari, but not much good if you want to get the URL into FMP (as per
OzSprings' original request). No matter. The syntax for getting the URL
still applies. Safari doesn't need to be frontmost, and the value of
'theURL' is simply a string containing the URL. You can take it anywhere.
;-)
Nick
pp Mr Tea
--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.