Does anyone know of a way to duplicate a Note while retaining formatting?

Does anyone know of a way to duplicate a Note while retaining formatting? While my preference would be an iOS solution with shortcuts I do have an always on Mac that would be an option if there is a way that way

Hi,

I can’t see a way of doing this with Shortcuts and on the Mac the duplicate command fails with an error saying that notes can’t be copied.

I played around with reading a note and making a new one and this will ‘duplicate’ a note with the styling intact.

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

tell application "Notes"
	tell its account 1
		set theNoteName to name of note 1
		set theBody to body of note 1
		make new note at folder "Notes" with properties {name:theNoteName & " duplicate", body:theBody}
	end tell
end tell

I found the following article really helpful https://www.macosxautomation.com/applescript/notes/index.html

I am also using Script Debugger from https://latenightsw.com.

Alan

1 Like

I just tried it with a note that has a fair amount of Title Text in it as well as bulleted list in an outline style. Unfortunately it didn’t copy all the formatting but did copy all of the text. Thank you for the try. I’ll keep playing with it using this foundation.

Not perfect but I just realized if I put HTML in shortcuts, then convert it to rich text and create note it gets me most of the way there.

1 Like