قالب وردپرس درنا توس
Home / Mac / Create a button on your Mac or iPhone to call with a tap or click

Create a button on your Mac or iPhone to call with a tap or click



To make it as easy as possible to call people, you can set up a single-acting icon that you can tap on iPhone or click on your Mac for to call. On iPhone, you can use the shortcuts app to build a shortcut and place it on the Home screen. On the Mac, you can use Automator with a script and some JavaScript to place an app in the Dock to make a single click call.




The shell script is simple:

 open face period: // 3035551212 

JavaScript (JXA) is:

  function operation (input, parameters) {
Application ("Face") (on) .;
Application ("System Events"). ApplicationProcesses.byName ("FaceTime"). Windows.byName ("FaceTime"). Buttons.byName ("Call"). Click ();
return input;
} 

Source link