5

I don't understand how the Record system works in AppleScript. The instructions seem clear, but not very helpful.

  1. In the Script Editor app / on your Mac, click the Record button ⏺ in the toolbar.

  2. Perform the actions you want to record in the recordable app.

  3. 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

10
  • I believe that the script will populate with commands that it can actually record. If no commands are populated in the script window, then you didn't do something that Script Editor could record (I may be way off on that, I haven't tried the record button in a long long time). 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, ymmv. Nov 25, 2020 at 21:45
  • I'm actually trying to troubleshoot a message script that broke with BigSur update. I was trying to create a new simple script to see if there were any formatting differences. Are you saying that Messages is scriptable but not recordable? Can you confirm that on your MacOS?
    – zipzit
    Nov 25, 2020 at 21:51
  • 1
    Very few applications are “recordable”. Messages is not one of them. Finder is one of those recordable applications.
    – wch1zpink
    Nov 25, 2020 at 21:56
  • Am I unreasonable to expect a "Beware, some applications are not recordable" popup upon a stop command with empty buffer? ... sigh. @ChrisNorman If you summarize your stuff as an answer, and confirm that Messages in not recordable, I'll accept it.. many thx to all.
    – zipzit
    Nov 25, 2020 at 22:06
  • @zipzit I am confirming that Messages.app is not recordable. Can you edit your post to include the code that is giving you the problem? This will allow others to be able to help you
    – wch1zpink
    Nov 25, 2020 at 22:25

1 Answer 1

6

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
2
  • I can't get mail.app to record anything either. Trying to create an automator service to move a selected message into a mailbox On My Mac. Automator can't do it; says use apple script. AppleScript has the commands, but sure wish I could record a script to get a prototype to follow. Oh well. Apple seems to be letting more and more stuff just get stale. They're learning from google I guess. Mar 18, 2021 at 20:53
  • We share your pain. I will say, Google has a pretty good bug user submit and tracking system, with complete visibility.
    – zipzit
    Mar 19, 2021 at 8:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .