Created
October 10, 2013 10:44
-
-
Save dommmel/6916485 to your computer and use it in GitHub Desktop.
Dial tel:// and sip:// links on your snom phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- add this to the dict node --> | |
<key>CFBundleIdentifier</key> | |
<string>com.apple.AppleScript.SnomDialer</string> | |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> | |
<string>SnomDialer</string> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>tel</string> | |
<string>sip</string> | |
</array> | |
</dict> | |
</array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on open location telURL | |
set savedDelimiters to AppleScript's text item delimiters -- save text delimiters | |
set AppleScript's text item delimiters to {"tel://", "sip://"} | |
--This sets Applescript's text item delimiters to the newDelims. | |
set telephoneNumber to item 1 of the text items of telURL | |
do shell script "curl http://IP_OF_YOUR_PHONE/command.htm?number=" & telephoneNumber | |
set AppleScript's text item delimiters to savedDelimiters -- reset text delimiters | |
end open location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment