Skip to main content
Participating Frequently
September 17, 2024
Answered

How to delete notes with Applescript

  • September 17, 2024
  • 2 replies
  • 321 views

I just want a script that will delete all the notes in InDesign. 

This one isn't working. It says it can't get every note.

tell mydoc
set mynotes to every note
repeat with i from (count of mynotes) to 1 by -1
delete item i of mynotes
end repeat
end tell

"Adobe InDesign 2024 got an error: Can’t get every note of document id 8." number -1728 from every note of document id 8

This topic has been closed for replies.
Correct answer leo.r

try this:

tell document 1 to delete notes of stories

 

2 replies

leo.r
Community Expert
leo.rCommunity ExpertCorrect answer
Community Expert
September 17, 2024

try this:

tell document 1 to delete notes of stories

 

brian_p_dts
Community Expert
Community Expert
September 17, 2024

Not an AS guy but Document doesn't have a Notes property. Instead I would get all notes from all stories in a doc