Open Finder app   Download

tell application "Finder"
   activate
end tell

Open home folder in Finder app   Download

tell application "Finder"
   open home
end tell

Switch play/pause iTunes   Download

tell application "iTunes"
   playpause
end tell

Play next track in iTunes   Download

tell application "iTunes"
   play (next track)
end tell

Play previous track in iTunes   Download

tell application "iTunes"
   play (previous track)
end tell

Open new tab in Safari with certain address   Download

tell application "Safari"
   activate
   tell window 1
      set current tab to make new tab with properties {URL:"http://apple.com"}
   end tell
end tell

Create new outgoing message in Mail   Download

tell application "Mail"
   make new outgoing message with properties {visible:true}
   activate
end tell

Create new document in TextEdit   Download

tell application "TextEdit"
   make new document
   activate
end tell

Switch Mac into sleep mode   Download

tell application "Finder"
   sleep
end tell