Wenn man nicht in ControllerMate oder andere Tools investieren möchte, bietet sich in der Tat ein AppleScript an. Ich habe mal ein Applescript-Programm-Bundle erstellt, welches man auf eine Maustaste legen kann.
Das Skript sieht momentan so aus:
Code:
tell application "System Events"
set frontmostprocess to name of first process whose frontmost is true
if frontmostprocess is "BrowseBack" or frontmostprocess is "Script Editor" then
set visible of process frontmostprocess to false
set frontmostprocess to name of first process whose frontmost is true
end if
try
if frontmostprocess is "Safari" then
tell application "Safari"
activate
do JavaScript "history.back();" in document 0
end tell
else if frontmostprocess is "firefox-bin" or frontmostprocess is "Firefox" then
#keystroke "[" using command down # funktioniert nicht mit Firefox 3.01
key code 123 using command down # cursor links
else
key code 41 using command down # ö
end if
end try
end tell