your favorite applescript ever!

Hi guys,
I constantly search the applescript forum for cool and inventive scripts
that I can incorporate into my own. I find Scripting fun because the results
are not only pleasurable but rewarding. I would like to post a script that I
am very proud of and that I could not have written without this forum. :lol: .
I use this script so people using my computer for a game server can
restart the game if it crashes. All they do is email me and poof they are
playing again. Please, if you have a script that you think is cool or inventive,
post it as a reply, I would love to see them and im sure that everyone else
would too!

p.s. this script uses extra suites (ES)

property theTicks : 200

selectMenuItem("GameRanger", 2, 1)

-----

on selectMenuItem(appl, theMenu, menuItem)
	tell application "GameRanger" to quit
	tell application "Extra Suites"
		ES set screen resolution width 1024 height 768
		ES pause theTicks
		ES set volume 15
		set mouseLoc to ES mouse location
		ES move mouse {659, 337}
		ES pause theTicks
		ES click mouse
		ES pause theTicks
		ES pause theTicks
		tell application "GameRanger" to activate
		set mouseLoc to ES mouse location
		ES move mouse {30, 15}
		ES pause theTicks
		ES click mouse
		repeat theMenu times
			ES type key "right arrow"
			ES pause theTicks
		end repeat
		repeat menuItem times
			ES type key "down arrow"
			ES pause theTicks
		end repeat
		ES type key "return"
		ES move mouse mouseLoc
		ES type key "return"
		ES pause theTicks
		ES pause theTicks
		ES pause theTicks
		ES pause theTicks
		tell application "Extra Suites"
			ES pause theTicks
			ES move mouse {720, 420}
			ES click mouse
			ES type key "return"
		end tell
	end tell
end selectMenuItem

I have lots of favorite scripts…
One of the firsts I wrote some time ago is “MenuScripter”:
http://usuarios.lycos.es/julifos/scripts0.html
It was very funny to write and my first script with a serious interface (if I remember well…) – and it was useful!

I also wrote a set of scripts in my old company:

  • The user sends a message to a specified email account with a specially formatted subject and body.
  • The receiving machine read the message and:
    a) Print Quark documents in a specified folder.
    b) Convert related docs to PDF.
    c) Send back the PDFs to the sender of the message.
    It was a time-saving beast! (though not a money-earning beast for me :? )

I also love my first shareware app --now freeware and open-source–: MacHacha. It reads from scratch several formats of segmented files, and is able to join and split them.

I also like the old-called “MSIE Library”, now called “sfri Library” and bundled into “sfri Tools”, here: http://homepage.mac.com/julifos/soft/sfritools/index.html
This library is more an exercice of javascript than applescript…

Finishing… I use lots of times a little droplet in my desktop called “TotalReMD5”. It renames files according to their MD5-sum, which is useful for me when I try to organize certain kind of files whose name is not as relevant as its byte-contents… There is a modified version bundled in the package “kapullo scripts”, here: http://homepage.mac.com/julifos/soft/kapullo/index.html
(this is not very lovely, but very useful for me…) :lol:

Please don’t forget ScriptBuilders - In here are tons of kewl stuff from many authors, most of which I still use to this day. :wink:

Please feel free to post your stuff on ScriptBuilders, which I am positive others will appreciate very much.