AppleScript: does skype supports command for remote machine?

Discussion in 'Mac Programming' started by Monaj, Dec 29, 2009.

  1. Monaj macrumors regular

    Joined:
    May 24, 2009
    #1
    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
     
  2. LtRammstein macrumors 6502a

    LtRammstein

    Joined:
    Jun 20, 2006
    Location:
    Denver, CO
    #2
    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.
     
  3. Monaj thread starter macrumors regular

    Joined:
    May 24, 2009
    #3
    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!
     

Share This Page