Hello, is there any way to display little graphic images of active Chrome tabs on the touch bar ? I cannot figure it out if there is and I have tried searching. Please help.
Thank you
Hello, is there any way to display little graphic images of active Chrome tabs on the touch bar ? I cannot figure it out if there is and I have tried searching. Please help.
Thank you
I dont think so..
I created a script which is able to take me to predefined tabs (like gmail, messenger and so on) I use all the time..
So you can create a button with icon of mesenger and add to this a async apple script
As seen in screenshot, Gmail, Messenger, and Asana (three dots) are not applications but tabs in chrome - rest are applications - so I created combined dock viewer widget (combines Apps, Tabs (internet apps), and running apps)
set searchString to "Messenger"
tell application "Google Chrome"
set win_List to every window
set win_MatchList to {}
set tab_MatchList to {}
set tab_NameMatchList to {}
repeat with win in win_List
set tab_list to every tab of win
repeat with t in tab_list
if searchString is in (title of t as string) then
set end of win_MatchList to win
set end of tab_MatchList to t
set end of tab_NameMatchList to (id of win as string) & ". " & (title of t as string)
end if
end repeat
end repeat
if (count of tab_MatchList) is equal to 1 then
set w to item 1 of win_MatchList
set index of w to 1
my setActiveTabIndex(t, searchString)
else if (count of tab_MatchList) is equal to 0 then
display dialog "No match was found!" buttons {"OK"} default button 1
else
set which_Tab to choose from list of tab_NameMatchList with prompt "The following Tabs matched, please select one:"
if which_Tab is not equal to false then
set oldDelims to (get AppleScript's text item delimiters)
set AppleScript's text item delimiters to "."
set tmp to text items of (which_Tab as string)
set w to (item 1 of tmp) as integer
set AppleScript's text item delimiters to oldDelims
set index of window id w to 1
my setActiveTabIndex(t, searchString)
end if
end if
end tell
on setActiveTabIndex(t, searchString)
tell application "Google Chrome"
set i to 0
repeat with t in tabs of front window
set i to i + 1
if title of t contains searchString then
set active tab index of front window to i
delay 0.01
do shell script "open -a Google\\ Chrome"
return
end if
end repeat
end tell
end setActiveTabIndex