I've downloaded and bought the program Sony Ericsson Clicker and just starting to write some applescripts to use with it. My latest one is uptime, and the script looks like this:
If you have made any smart, stupid or clever scripts to this cool app why not share them in this tread?
Code:
set this_data to do shell script "/usr/bin/uptime"
set x to the offset of "up" in this_data
set this_data to (characters x thru -41 of this_data) as string
set that_data to do shell script "/usr/sbin/sysctl kern.boottime"
set x to the offset of "=" in that_data
set that_data to (characters (x + 1) thru 35 of that_data) as string
set boot_data to "Your Mac has been " & this_data & " and was last booted on" & that_data
return {"Uptime", boot_data}
If you have made any smart, stupid or clever scripts to this cool app why not share them in this tread?