Is it possible to get all URL of Safari/Chrome open tabs?

Hi. Is it possible to get all Safari/Chrome open tabs with AppleScript? Is it also possible to check if tab audio is enable/play video/music? macOS Thank you!

You can get all the URL's for all tabs:

tell application "Google Chrome"
	activate
	set theWindows to windows
	repeat with theWindow in theWindows
		set theTabs to tabs of theWindow
		repeat with theTab in theTabs
			set theURL to URL of theTab
			log theURL
		end repeat
	end repeat
end tell

Don't know how to check for audio state. It is possible to fire off a small JavaScript on each page. So if you can check that with JS that would be an option.

Is it possible to get all URL of Safari/Chrome open tabs?
 
 
Q