Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Dial numbers in Google Voice using a Service' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Dial numbers in Google Voice using a Service
Authored by: geordie on Oct 09, '09 11:58:33AM
I do something similar only I use the googlevoice.pl ( http://www.0xdecafbad.com/?p=87 ) perl script instead of php. I have 3 automator services, one for call from office, one for call from cell, and one for call from home. For my friend who wanted the same thing on 10.5, I used ThisService from http://wafflesoftware.net/thisservice/ with the same script I prefer to retrieve my account and password from my keychain instead of storing it directly in the script. It wouldn't be that hard to convert the following perl snippet to php if you wanted to...
my $use_keychain = 1;

if ($use_keychain)
{
    my $svce = "Google Services";
    open (KEYCHAINITEM, "security 2>&1 find-generic-password -g -s '$svce'|");
    while (<KEYCHAINITEM>)
    {
        /"acct"<blob>="(.*)"/ and  $username = $1;
        /^password: "(.*)"$/  and  $password = $1;
    }
}
I also suggest moving all of the processing into the script my Automator service only has one line: /Applications/bin/googlevoice.pl call "$1" xxx-xxx-xxx (the number I want to call from) Finally the service you provided is set to apply to all text. Automator services have the ability to apply to just certain kinds of text and telephone numbers is one of those kinds. I suggest using that so that the contextual menu item only shows when a phone number is selected.

[ Reply to This | # ]