I noticed that every time that I restart my computer I have to do the following tasks:
- open Terminal
- type ‘cd sites/mysite’
- open another tab in Terminal
- type ‘cd sites/mysite’
- type ‘script/server –debugger’
- open Safari
- go to ‘http://localhost:3000/‘
- open TextMate
- Open -> mysite
Is it possible to automatize this process using Automator? If no, there are any alternatives to speed up this process?
I tried to register this process with Automator, but would be better to use commands directly.
You probably can with Automator, and I would start by trying recording it in Automator (Workflow>Record; it will tell you about the special sysPreference you need to turn on).
If Automator can’t record it easily, then Applescript would probably be much easier. Automator shines when one piece needs to flow into another (a real “workflow”). When it’s just a bunch of independent steps, then shell scripts or applescripts are easier (except in cases where Automator can record it for you).
Some tips:
In a shell script, “open http://…” will open the page in your preferred browser.
osascript lets you run small Applescripts within a shell script.
Automator can run both shell scripts and applescripts
Applescripts can run shell scripts.