Another possibility to send IR codes using iRed is the comandline tool "ired", which is part of the installation package.
Used from a Terminal window it may look like:
ired -send "Sony Amp" Power |
To call AppleScripts which are part of the iRed archive use the parameter "-call" (*):
ired -call iTunes "Play/Pause" |
(*) With the first version of "ired" the parameter "-call" was used to send IR codes. This seemed to be misleading, so I changed the meaning of the parameters to the one described above.