Miraz
Miraz

An often used TextExpander snippet grabs title and URL from Safari. Tab groups upset it. Updated:

tell application “Safari”
 set theName to name of current tab of front window
 set theURL to URL of current tab of front window
 return “[“ & theName & ”](” & theURL & “)”
end tell
Screen Shot of the snippet.

|
Embed
Progress spinner
In reply to
yatil
yatil

@Miraz I have ,furl (front url), ,fti (front title), ,fmd (front markdown) as well as ,2url (2nd window url), ,2ti (2nd window title), ,2md (2nd window markdown) set as shortcuts in Keyboard Maestro. I often use the URL from one window in the other. It’s a neat party trick and honestly makes me appreciate Safari so much more.

|
Embed
Progress spinner
Miraz
Miraz

@yatil Aha! I also have snippets for Title and URL formatted in HTML and for URL alone. I absolutely adore both TE and KM and use both extensively.

|
Embed
Progress spinner