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

Delete Anchored objects

New Here ,
Feb 12, 2024 Feb 12, 2024

Copy link to clipboard

Copied

Hello ! Having a lot of files coming from our client with anchored objects, can we please have an option to delete it even in the "inline or above line objects" mode ? (cut and paste it is not a great solution as it doesn't stay at the same place as it was)
Would save so much time to so many people !!!

TOPICS
Feature request , How to

Views

125

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 ,
Feb 12, 2024 Feb 12, 2024

Copy link to clipboard

Copied

Right-click on the Anchored object, then choose Achored Object/Release.

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 ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

Marc Autret wrote a script that will release all anchored objects in your document. Read this thread: https://community.adobe.com/t5/indesign-discussions/release-all-anchored-objects-at-once/m-p/380794...

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 ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

So you don't want to delete them permanently - but release / unanchor?

 

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 ,
Feb 17, 2024 Feb 17, 2024

Copy link to clipboard

Copied

Hi @Anne35404369uvu5 ,

to remove (delete) all anchored objects in a document could be done with one line of code in ExtendScript (JavaScript):

app.documents[0].stories.everyItem().texts.everyItem().pageItems.everyItem().remove();

 

Well, not the ones in table cells and footnote texts.

This requires extra effort…

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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 ,
Feb 17, 2024 Feb 17, 2024

Copy link to clipboard

Copied

@Laubender

 

 

 

app.documents[0].stories.everyItem().texts.everyItem().tables.everyItem().cells.everyItem().pageItems.everyItem().remove()

 

 

 

should do the trick?

 

But instead of remove() - release() anchoredObjectSettings.releaseAnchoredObject() should work for @Anne35404369uvu5 - in both cases. 

 

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 ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

Hi Robert,

that would remove items in graphic cells as well.

And don't forget the footnote texts.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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 ,
Feb 18, 2024 Feb 18, 2024

Copy link to clipboard

Copied

LATEST

Robert said: "But instead of remove() - release() anchoredObjectSettings.releaseAnchoredObject() should work for @Anne35404369uvu5 - in both cases. "

 

Not the ones that are inline and above line anchored.

You first have to change the kind of anchor to, well, anchored.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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