Eventually I need to clean house when too many Stickies notes accumulate, but it seems harder than necessary. Is there an easy way?

Mac OS allows many windows to be closed at once using option-command-w (Finder Get Info windows, open folders, open Preview windows (even if edits have been made)). But this does not work with Stickies. And since they all have content, you get prompted to save every time command-w is used. So the only way I know is to command-w, spacebar, command-w, spacebar, command-w, spacebar, etc... As you can see in the animated .gif, this gets old.

Is there a better way?

enter image description here

有帮助吗?

解决方案

This method works for me at least. macOS 10.14.5

rm ~/Library/StickiesDatabase

Using Automator's Record feature, you can ease repetitive tasks.

  1. First get a new workflow. Then hit record button on the top right. This makes a floating record bar with a stop button and gives focus to Finder.

  2. Click the Stickies in the Dock and click the stop button in the Automator bar.

  3. This opens Automator with a single action in a block, Running which gives focus to Stickies/ or opens it.

    Automator's single block

  4. Now hit the record button and

    1. Click Stickies in the dock: this opens all the notes.
    2. Hit command+W OR File menu > close note.
    3. Click Delete note in the popup that appears.
    4. Stop the recording.

    Now you should have this on your screen.

    enter image description here

  5. Click on the "Click "Stickies" in the dock line" in the second block and hit delete.

  6. You can also increase the playback speed. Now the second block is ready to be copied. So click on the black area to get focus of the same.

    1. Either right click, hit duplicate. Then use command key to select multiple blocks, right click duplicate, and repeat as many times you wish.

    enter image description here

    1. Simply command + click on the blocks and use normal copy paste shortcuts.

    enter image description here

Now save it and run it. When it runs out of notes, it encounters an error, and terminates.

许可以下: CC-BY-SA归因
不隶属于 apple.stackexchange
scroll top