Different scripts to do things with youtube and other applications
-
Start Automator
-
Select New from Menu bar
-
Select Service
-
Select "no input" from the first drop down and "any application" from the second
-
Select "Run Applescript" from the list on the left
-
Get to coding :) . This is the best part.
-
Save
-
Open System Preferences and Select Keyboard
-
Select Shortcuts, then Services from the list on the left
-
Scroll all the way down to General and you'll see your script
-
Assign it a shortcut
-
Done!