Applescript API documentation

前端 未结 4 1084
既然无缘
既然无缘 2021-01-02 22:19

I want to make an AppleScript to automate the task of switching resolution on the MacBook Pro Retina.

Searching the internet for \"applescript system preferences\" I

4条回答
  •  误落风尘
    2021-01-02 23:05

    You're exactly right. Each program does have its own documentation for applescript. It's called its applescript dictionary. You can see the dictionary of any application by any of the following...

    1) in AppleScript Editor, under the File menu, choose "Open Dictionary...". You can select an application from there and it will show its dictionary.

    2) drag/drop an application onto the AppleScript Editor's icon.

    3) there's a list of frequently-used dictionaries for fast access. Under the Window menu in AppleScript Editor choose "Library". You can double-click an application in that list. You can also modify that list to contain dictionaries that you want in the list.

    Good luck.

提交回复
热议问题