Applescript: Levelup nerdiness
Applescript is a wonderful thing. You can use it to tell pretty much any program on the Mac to do anything.
Some people say it has a natural language that makes it more approachable by non-programmers. That’s fine if you are editing someone else’s Applescript, but it can still be a challenge if you are starting from scratch, because you still have to learn the syntax. There may even be two or three ways of saying something; I don’t know this.
All I know is that it took me all of two minutes with the Applescript dictionary for Safari and a few google searches to come up with a script that I can use to perform actions in a facebook game, roughly every two minutes.
tell application "Safari"
repeat
set URL of tab 1 of window 1 to "http://example.com/"
delay (110 + (random number from -5 to 5))
end repeat
end tell
And with that, while other people are wasting their time logging in to do this action of little consequence, I can go on with the rest of my life.
Technorati Tags: Facebook, Applescript, Safari, development