While in Coda, I press Command + R to refresh Firefox, saving one (measly) click. There are probably better ways to do this like using the LiveReload plugin.
First, create the Service in Automator:
- Open Automator
- Select Service
- Click Utilities
- In the Service receives select no input (1st dropdown) in Coda (2nd dropdown)
- Click Run AppleScript then Paste the code below in the AppleScript window
- Save the service and name it Refresh Firefox in Coda
tell application "Firefox" to activate tell application "System Events" keystroke "r" using {command down} end tell
Second, setup the keyboard shortcut:
- Click System Preferences
- Click Keyboard then Keyboard Shortcuts
- Select Services
- Check off Refresh Firefox in Coda
- Click Application Shortcuts
- Add a new Shortcut and enter in:
- Application: Coda.app
- Menu Title: Refresh Firefox in Coda
- Keyboard Shortcut: enter your shortcut
Restart Coda and press Command + R to refresh Firefox.