Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to delete notes with Applescript

Community Beginner ,
Sep 17, 2024 Sep 17, 2024

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

TOPICS
Scripting
283
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 17, 2024 Sep 17, 2024

try this:

tell document 1 to delete notes of stories

 

Translate
Community Expert ,
Sep 17, 2024 Sep 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2024 Sep 17, 2024
LATEST

try this:

tell document 1 to delete notes of stories

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines