Skip to content

Instantly share code, notes, and snippets.

@dommmel
Created October 10, 2013 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dommmel/6916485 to your computer and use it in GitHub Desktop.
Save dommmel/6916485 to your computer and use it in GitHub Desktop.
Dial tel:// and sip:// links on your snom phone
<!-- 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>
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