문제

Red Hot Timer uses the Spotlight search bar to create new timers. From AppleScript I can run

open location "timer://30m"

to start the timer. I have tried

app = Application.currentApplication();
app.includeStandardAdditions = true;

function openLocation() {"timer://30m"}
openLocation()
도움이 되었습니까?

해결책

To run a Spotlight command use openLocation.

app = Application.currentApplication();
app.includeStandardAdditions = true;

app.openLocation("timer://30m") 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 apple.stackexchange
scroll top