# Mac: How to start iPhone call from Servoy

**URL:** <https://forum.servoy.com/t/mac-how-to-start-iphone-call-from-servoy/19562>\
**Category:** Classic Servoy\
**Created:** [January 9, 2018, 1:15pm UTC](https://forum.servoy.com/t/mac-how-to-start-iphone-call-from-servoy/19562 "2018-01-09T13:15:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LXS](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@LXS](https://forum.servoy.com/u/LXS)\
**Post date:** [January 9, 2018, 1:15pm UTC](https://forum.servoy.com/t/mac-how-to-start-iphone-call-from-servoy/19562/1 "2018-01-09T13:15:05Z")

</div>

Hi,

on Mac OS X you can click on a simple link and the OS asks if it should start a call via the iPhone connection.  
A sample HTML Code is here:

```auto
<html>
<head><title>PhoneCallTest</title></head>
<body>
<a href="tel:030-123456">Call</a>
</body>
</html>

```

Is it possible to trigger this call directly from Servoy?

I’ve tried it with application.showURL(‘tel:030-123456’), but the method return false and nothing happens.

Is there another way to call the “tel” scheme?

Thanks!  
Alex

---

<div class="post-metadata">

**Author:** ![LXS](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@LXS](https://forum.servoy.com/u/LXS)\
**Post date:** [January 9, 2018, 2:54pm UTC](https://forum.servoy.com/t/mac-how-to-start-iphone-call-from-servoy/19562/2 "2018-01-09T14:54:35Z")

</div>

I think i found a simple solution:

> if (utils.stringMiddle(application.getOSName(), 1, 7) == ‘Windows’) {  
> application.executeProgram(“explorer”,[“tel:” + phoneNumber])  
> } else if (utils.stringMiddle(application.getOSName(), 1, 3) == ‘Mac’) {  
> application.executeProgram(“open”,[“tel:” + phoneNumber])  
> }

On Windows you get a dialog to choose the application.  
On Mac you get a small popup in the right upper corner, like when you click on the HTML link in the first post.

---

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [January 10, 2018, 9:44pm UTC](https://forum.servoy.com/t/mac-how-to-start-iphone-call-from-servoy/19562/3 "2018-01-10T21:44:51Z")

</div>

Nice!
