You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on execute(draft) set docText to ("## Safari Tabs" & linefeed as string) & linefeed as string tell application "Safari" --Variables set windowCount to number of windows --Repeat for Every Window repeat with x from 1 to windowCount set tabcount to number of tabs in window x --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 window x set tabURL to URL of tab y of window x set docText to docText & "- [" & tabName & "](" & tabURL & ")" & linefeed as string end repeat end repeat end tell return docTextend execute--stub call to execute for easier testing in Script Editorexecute({})