Delete lines from a Draft


#1

Hello, I’m trying to build an action to delete lines 2 and 3 from a draft (action executed by the new Apple Shortcut app) but I don’t know how (and if it’s possible)

Thanks for the help


#2

This line of script should do the trick.

draft.content = draft.processTemplate("[[title]]") + "\n" + draft.processTemplate("[[line|4..]]");

Hope that helps.