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

How to delete notes with Applescript

New Here ,
Sep 17, 2024 Sep 17, 2024

Copy link to clipboard

Copied

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

Views

85

Translate

Translate

Report

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

 

Votes

Translate

Translate
Community Expert ,
Sep 17, 2024 Sep 17, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

try this:

tell document 1 to delete notes of stories

 

Votes

Translate

Translate

Report

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