Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

janc24

macrumors newbie
Original poster
Dec 11, 2024
5
0
London
Hello everyone!



I’m looking for assistance in creating a shortcut on iOS that can automate some tasks related to my notes. Here’s what I’m trying to achieve:

1. I have multiple notes stored in the same folder, and each of them contains different checklists.

2. I want to sort and filter all the checklists across my notes.

3. Specifically, I’d like to extract all the unchecked items from these notes and compile them into a new note automatically.



Does anyone have experience with creating shortcuts in iOS that could help with this? Or maybe someone could guide me on how to set it up?



Any advice or examples would be greatly appreciated!



Thanks in advance!
 
If looking to create a new checklist, not really, from what I can tell. Can get close and would require some manual effort.

Basic outline attached.

If start with this:

start.png

Will wind up with something like this:

new.png

Would need to do some text replacements to handle the leading tabs that cause the indentations. And then would need to pull-up the Note in Notes and select all and tap on the checklist icon to make each line a checklist item.
 

Attachments

  • code.png
    code.png
    214 KB · Views: 65
If looking to create a new checklist, not really, from what I can tell. Can get close and would require some manual effort.

Basic outline attached.

If start with this:

View attachment 2461629

Will wind up with something like this:

View attachment 2461630

Would need to do some text replacements to handle the leading tabs that cause the indentations. And then would need to pull-up the Note in Notes and select all and tap on the checklist icon.
Thank you.
I just wanted to ask, how do you put the checkmark in the if?
 
It's sort of works... it creates a long note... because I have a lot of text between the checklists in the same note. I need to get the unchecked character that work. I've tried a couple of characters with "if repeat contains "but the note comes out empty.
Again, thank you so much
 
happy holidays!!

The shortcut works perfect, but I now need an update. 😂 I want the shortcut to stop processing the note when it gets to a text, for example 15.12 and to to the next note it finds. Can you please explain how to create this new rule?

Thank you so much for you time and help!!
 
Just need to add in an extra if or two. And (maybe) to ask for what pattern you want. Basic outline:

Code:
Ask: Pattern to match?
Set variable Pattern to Ask result.

Number: 0
set variable Done to Number

Split body of note at newline
repeat each split item

if Done is 0
    if split item contains Pattern
        Number: 1
        set Variable Done to Number
    else
        // process split line here //
    endif
endif

end repeat
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.