How can I create a “Call Highlighted #” context menu item for Skype on a Mac?

Joshua Mullenberg May 4, 2010
Pinterest Stumbleupon Whatsapp

I am just wondering if there is a way to add a context menu item to call a highlighted phone number in safari/mail/etc. with Skype. Maybe applescript? (OSX 10.5.8)

  1. Kundera98
    June 25, 2010 at 11:24 pm

    any chance you can outline the process so the rest of us [less IT savvy] can understand? thanks

  2. Joshua Mullenberg
    May 4, 2010 at 4:31 pm

    Answered my own question: Its already available under the services menu.

    However, before I realized that, I figured out a way to use applescript paired with quicksilver to launch it. Its a little quicker than navigating through the menus. All you have to do is highlight the PH# and then use quicksilver to run the script. Here is the script:

    tell application "System Events"
    set frontApp to name of the first process whose frontmost is true
    set visible of process frontApp to false
    set frontApp to name of the first process whose frontmost is true
    end tell
    tell application frontApp to activate
    tell application "System Events"
    tell process frontApp
    tell menu bar 1
    click menu item "Copy" of menu "Edit"
    end tell
    end tell
    end tell

    set thePhoneNumber to the clipboard as text
    set thePhoneNumber to "+1" & thePhoneNumber

    tell application "Skype"
    send command "CALL " & thePhoneNumber script name "s1"
    end tell

    • Aibek
      May 6, 2010 at 12:05 pm

      Hey Joshua,

      Thanks for sharing this with everyone else.

      Aibek