-
Notifications
You must be signed in to change notification settings - Fork 588
Safari Tab switch (CMD #), like Chrome
Krillere edited this page Mar 21, 2015
·
1 revision
-- Safari tab keys
hs.hotkey.bind({"cmd"}, "1", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 1')
end)
hs.hotkey.bind({"cmd"}, "2", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 2')
end)
hs.hotkey.bind({"cmd"}, "3", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 3')
end)
hs.hotkey.bind({"cmd"}, "4", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 4')
end)
hs.hotkey.bind({"cmd"}, "5", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 5')
end)
hs.hotkey.bind({"cmd"}, "6", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 6')
end)
hs.hotkey.bind({"cmd"}, "7", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 7')
end)
hs.hotkey.bind({"cmd"}, "8", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 8')
end)
hs.hotkey.bind({"cmd"}, "9", function()
hs.applescript._applescript('tell front window of app "Safari" to set current tab to tab 9')
end)