Create monthly snapshot of all open tabs

Thanks! I found a similar script from RosemaryOrchard:

tell application "Safari"
	set docText to ""
	set tabcount to number of tabs in the front window
	
	--Repeat for Every Tab in Current Window
	repeat with y from 1 to tabcount
		
		--Get Tab Name & URL
		set tabName to name of tab y of the front window
		set tabURL to URL of tab y of the front window
		
		set docText to docText & "- [" & tabName & "](" & tabURL & ")" & linefeed as string
	end repeat
	set the clipboard to docText
end tell