Oct 13, '08 07:30:00AM • Contributed by: miketyson
Instructions:
- Save the following code to ~/Library/Scripts, and name it sync-status-with-twitter.rb:
- Open it in, say, TextEdit and replace MyUserName at the top of the file to your actual Twitter username.
- Open Terminal (in Applications » Utilities), and make the script executable: chmod +x ~/Library/Scripts/sync-status-with-twitter.rb
- Open your crontab: crontab -e
- Add a line to crontab to run the script regularly:
- Press o to insert a new line
- Paste the following line:
*/30 * * * * ~/Library/Scripts/sync-status-with-twitter.rb
The 30 here means run every 30 minutes. Change it if you want. Some alternatives for the first bit are:- */10 * * * * -- Every 10 minutes
- 0 * * * * -- Hourly, on the hour
- 0 */2 * * * -- Every second hour, on the hour.
- Press escape to stop editing
- Hold down shift and press ZZ (Z key twice) to save and quit
For more help with this script, please see the original post on my blog.
[robg adds: I haven't tested this one.]
