JPT URL Protocol
JPT can be told to dial (or add a number to the Quick Dial Numbers) from a webpage (or any application that supports URLs) by using the “jpt:” URL scheme. Note: URLs must be fully encoded with percent escapes such as “%20” for each blank space. If the computer does not have JPT installed, clicking on the link will either do nothing or lead the user to a page that says the link cannot be opened because the OS doesn’t recognize Internet addresses starting with “jpt:”.
Dial a number:
Using this code:
<a href="jpt://dial?number=212-555-1212">Dial 212-555-1212</a>
will create this link that, when clicked, will cause JPT to dial 212-555-1212 using the current Dialing Rules:
Dial 212-555-1212
|
Dial a number with a name parameter:
Using this code:
<a href="jpt://dial?number=212-555-1212&name=NYC%20Information">Dial NYC Information</a>
will create this link that, when clicked, will cause JPT to dial 212-555-1212 with the name “NYC Information” using the current Dialing Rules:
Dial NYC Information
|
Dial a number with name and literal parameters:
Using this code:
<a href="jpt://dial?number=212-555-1212&name=NYC%20Information&literal=TRUE">Dial NYC Information</a>
will create this link that, when clicked, will cause JPT to dial 212-555-1212 with the name “NYC Information” without applying the current Dialing Rules:
Dial NYC Information
|
Add a name and number to the JPT Quick Dial Numbers:
Using this code:
<a href="jpt://add?number=212-555-1212&name=NYC%20Information">Add NYC Information</a>
will create this link that, when clicked, will cause JPT to add 212-555-1212 with the name “NYC Information” to the Quick Dial Numbers:
Add NYC Information
|
The “jpt:” URL scheme can also be called from AppleScript:
 |
open location "jpt://dial?number=212-555-1212"
|
 |
open location "jpt://dial?number=212-555-1212&name=NYC%20Information"
|
 |
open location "jpt://dial?number=212-555-1212&name=NYC%20Information&literal=TRUE"
|
 |
open location "jpt://add?number=212-555-1212&name=NYC%20Information"
|
Copyright © 2004 - 2017 JNSoftware LLC. All Rights Reserved.
All other products mentioned are copyright of their respective owners.
No endorsement of or affiliation with any third-party product or service is implied.