Wednesday, 6 July 2016

macos - Applescript open new space in Mac OS Sierra

I want to open a new Desktop/Space in Mac OS Sierra. For an Alfred Workflow.




I tried it with a Applescript snippet that I found here:
Automator + Applescript how to: new Desktop (open Calendar and Reminders in it)



But this one does not seem to work under Mac OS Sierra.



I opened up the Accessibility Inspector and found out that there are two new groups.
https://i.imgur.com/PwlWvmz.png



So I tried this:




tell process "Dock" to tell group 1 to tell group 1 to tell group 1 to tell button 1 to click`
end tell


But it does not click the Button. Maybe someone is able to help me.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...