How to get the URL of the current tab

Here’s a short AppleScript script which gets the URL of the current tab. If the current tab is the News Items tab, then the URL is just an empty string.

tell application "NetNewsWire"
	set urlsList to URLs of tabs
	set ixCurrentTab to index of selected tab
	item (ixCurrentTab + 1) of urlsList
end tell
21 Mar 2005


© 1995-2014 Ranchero Software, LLC