This script works from the command line
Code: Select all
#!/bin/bash
#sends message via Messages to BUDDY
#[email protected]
osascript -e 'on run argv' -e 'tell application "iChat"' -e 'set theMessage to argv' -e 'send theMessage to buddy "[email protected]" of service 1' -e 'end tell' -e 'end run' "$*"
Code: Select all
#!/bin/bash
#sends message via Messages to BUDDY
#[email protected]
osascript -e 'on run argv' -e 'tell application "iChat"' -e 'set theMessage to item 1 of argv' -e 'send theMessage to buddy "[email protected]" of service 1' -e 'end tell' -e 'end run' "Your Show has finished downloading "$3""
any ideas? Thanks60:119: execution error: iChat got an error: Can’t make {"Your Show has finished downloading Too", "Big", "To", "Fail", "2011", "DVDRip", "XviD", "BeStDivX"} into type text, file, constant. (-1700)