Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Monaj

macrumors regular
Original poster
May 24, 2009
193
0
Hi all,

when I run this script for skype it works fine:

tell application "Skype"
send command "MESSAGE xyz check" script name "Script is fun"
end tell

but when I use this script for remote machine it produces error written below it:

set targetMachine to "eppc://xyz%20abc@192.168.0.31"
tell application "Skype" of machine targetMachine
send command "MESSAGE abc check" script name "Script is fun"
end tell

error: Expected end of line but found identifier.

Can anyone suggest me if I am wrong somewhere? or skype does not support apple script commands for remote machines??

Thanks in advance.....

Monaj
 
I think Skype still supports the commands. However, I noticed your syntax is wrong, which is most likely what AppleScript is yelling at you.

Code:
set targetMachine to "eppc://xyz%20abc@192.168.0.31"
tell application "Skype" of machine targetMachine
send command "MESSAGE abc check" of script name "Script is fun"
end tell

Try that.
 
Sorry friend it is still not working!

giving same error!

I had taken help from this link..
HTML:
https://developer.skype.com/Docs/ApiDoc/AppleScript

and modified it to work for remote machine!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.