Guest User

Untitled

a guest
May 21st, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on SkypeCall("someuser")
  2.     set AppleScript's text item delimiters to " "
  3.     tell application "Skype"
  4.         set foo to send command "GET USER " & login & " ONLINESTATUS" script name "MyScript"
  5.         set UserStatus to my GetPart(foo, 4, " ")
  6.         if UserStatus is "ONLINE" then
  7.             say "just testing"
  8.             send command "CALL " & login script name "MyScript"
  9.             copy (run script "tell application \"Finder\" to desktop's window's bounds") to bounds of window 1
  10.         else
  11.             say "[a] hello!"
  12.         end if
  13.     end tell
  14. end SkypeCall
  15.  
  16. on GetPart(s, p, d)
  17.     set theList to every text item of s
  18.     return (item p of theList)
  19. end GetPart
Add Comment
Please, Sign In to add comment