gcode-mirror / telephone

Automatically exported from code.google.com/p/telephone
Other
0 stars 0 forks source link

AppleScript support #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to have a command to call with Telephone
call(phoneNumber, [account])

another interesting feature is to have an event handler for incomming call.

Original issue reported on code.google.com by o...@ogdoade.com on 17 Aug 2009 at 4:37

GoogleCodeExporter commented 9 years ago
It's not possible at the moment, but I'm looking forward to make the app more 
script-friendly.

Original comment by eofs...@gmail.com on 17 Aug 2009 at 5:07

GoogleCodeExporter commented 9 years ago
Is there any other possibility to controll Telephone from outside? I want to 
write a script for Launchbar to call 
directly from it.

Original comment by DennisOberhoff on 22 Dec 2009 at 11:16

GoogleCodeExporter commented 9 years ago
Not that I know of.

Original comment by eofs...@gmail.com on 22 Dec 2009 at 9:03

GoogleCodeExporter commented 9 years ago
Telephone is perfect for me: simple and does what it should. So: Thank you very 
much!!

The only thing missing is scripting support, since I also want to use Launchbar 
to call contacts (which is a really neat feature when you use Skype). Here I 
have a question: in case I have time, I will add scripting support on my own. 
Would you accept a patch for it?

Original comment by tira...@gmail.com on 6 Jul 2010 at 11:32

GoogleCodeExporter commented 9 years ago
Well, that depends on the patch.

Original comment by eofs...@gmail.com on 19 Jul 2010 at 9:36

GoogleCodeExporter commented 9 years ago
I would also find this extremely useful, both for incoming and outgoing calls.

Original comment by dan%dlug...@gtempaccount.com on 23 Dec 2010 at 9:42

GoogleCodeExporter commented 9 years ago
AppleScript support would be amazing, especially for integrating it with a CRM 
like Daylite that already supports call handling via AppleScript.

Original comment by florian....@gmail.com on 21 Feb 2011 at 10:51

GoogleCodeExporter commented 9 years ago
I hope that some of you may find it helpful, and I'm not being captain obvious 
here. :) I made a small applescript to call numbers that are already in 
clipboard by simulating a paste and dial actions, like this. So basically you 
can insert this into any other more complicated script to use it for dialing. 

activate application "Telephone"
tell application "System Events"
    tell process "Telephone"
        click menu item "Select All" of menu "Edit" of menu bar item "Edit" of menu bar 1
        click menu item "Paste" of menu "Edit" of menu bar item "Edit" of menu bar 1
        key code 36
    end tell
end tell

I also think that if you can get a number stored as a variable within 
applescript, that you can substitute the paste line with a simulated variable 
input, but I didn't try to do this yet. 

Hope it helps. :)

Original comment by mikhail....@gmail.com on 5 Sep 2011 at 3:01

GoogleCodeExporter commented 9 years ago
I propose the AppleScript support to make simplest. For example, in the setups 
to add two fields for the references to the scripts, which it should be started 
with incoming call.

And so that in these scripts it would be possible to obtain CallerID. 

Or to use not ApplScript, but bash?

Original comment by vavannam...@gmail.com on 20 Jan 2012 at 6:02

GoogleCodeExporter commented 9 years ago
Dear Alyosha,

I'd gladly add scripting support, starting with single feature, namely to dial 
a number. Would you give some hints how you would like such thing to be 
implemented.

regards,

FH

Original comment by Ferdinan...@qedmarkets.de on 13 Feb 2012 at 10:31

GoogleCodeExporter commented 9 years ago
Dear Ferdinand,

This to unnecessarily make, because this so already can be made, using the 
System Events like this:

activate application "Telephone"
tell application "System Events"
    tell process "Telephone"
        click menu item "Select All" of menu "Edit" of menu bar item "Edit" of menu bar 1
        keystroke "+7-918-444-555-6"
        key code 36
    end tell
end tell

Original comment by vavannam...@gmail.com on 16 Feb 2012 at 7:35

GoogleCodeExporter commented 9 years ago
This requires User Interface Scripting to be enabled, which some consider being 
a security risk. Besides that, it is verbose and requires a clumsy step by step 
instruction, rather then a more simple way like:

tell application "Telephone" to dial "John Doe"

(which would get "John Doe" from the Mac AddressBook).

Or (with a different API):

tell application "Telephone"
 set my_call to make new call with properties {number: "+7-918-444-555-6", account: "server01.voip.out", stun: "stunserver.org", tries: "5"}
 dial my_call
end tell

tell application "Telephone" to set status "Offline"

Much more lovely :-)

Original comment by Mixich.A...@gmail.com on 16 Feb 2012 at 4:50

GoogleCodeExporter commented 9 years ago
Hi,

I second that. I experimented with the UI scripting and find it has a lot of 
irreproducible timing issues as well. Sometimes it works, sometimes not - which 
qualifies it as a hack at best.

I would like to start with adding a simple possibility to dial a number passed 
by apple script. Thus one can make a Mac OS X Service to e.g. dial the selected 
text.

However, I am unsure how the product owner would like this to be implemented 
and I do hesitate to develop something which then only exists on my "personal" 
fork.

I guess that I need to add scripting into the Control layer - a hint of the 
owner what he would think is the best place would be much appreciated.

Cheers,

FH

Original comment by Ferdinan...@qedmarkets.de on 17 Feb 2012 at 12:32

GoogleCodeExporter commented 9 years ago
Is there a solution for changing the status from "available" to "offline" and 
back using applescript? I need to get my Telephone offline when my screensaver 
is activated. I want to set this up with proximity checking the availability of 
my phone via bluetooth. 

Original comment by jensmai...@googlemail.com on 18 Jul 2012 at 2:45

GoogleCodeExporter commented 9 years ago
We utilized for this screen saver ScriptSaver. When screen saver starts, 
Telephone is turned off. When screensaver is turned off, Telephone is started.

Original comment by vavannam...@gmail.com on 23 Jul 2012 at 6:04