How do I use the record button in AppleScript?
-
30-05-2021 - |
Question
I don't understand how the Record system works in AppleScript. The instructions seem clear, but not very helpful.
In the Script Editor app / on your Mac, click the Record button ⏺ in the toolbar.
Perform the actions you want to record in the recordable app.
To stop recording, click the Stop button ⏹
Seems easy enough. So I do that..
- Open up Script Editor on MacOS, start a new script (File --> New).
- Hit the red record button.
- Open up my messages app. Enter my own phone number, enter a message "test" then send.
- Hit the Stop button in the Script Editor.
Great, but where is the recorded script? It didn't go to the empty script. Its not stored in the clipboard (Command-v = blank)
Am I doing this correctly? Where is the recorded content?
MacOS = Big Sur (11.0.1)
Script Editor= 2.11 (225) AppleScript 2.7
Scripting language = AppleScript
Solution
Apparently, the Message system is not recordable in MacOS AppleScript Editor.
- There is no error message, or any other feedback. It's just a fail.
- Comments from others: That being said, most people don't use that record button. You'd be better off trying Automator, or getting a utility like Keyboard Maestro that has a recording function that works better. - ChrisNorman
- Very few applications are “recordable”. Messages is not one of them. Finder is one of those recordable applications. – wch1zpink
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange