To return the URL of the current tab in Safari, use URL of current tab
:
tell application "Safari"
return URL of current tab of window 1
end tell
To return the URL of the current tab in Google Chrome, use URL of active tab
:
tell application "Google Chrome"
return URL of active tab of window 1
end tell