Highlighted

Move ObjectStyle to Layer

Engaged ,
May 05, 2018

Copy link to clipboard

Copied

Hi,

I made a script that prompts for object style and layer, then moves all objects with selected object style to the selected layer.

Here's a link to .zip archive that contains script and .indd / .idml test files - Dropbox - MoveObjects2Layer.zip

The problem is that sometimes script works just fine, but sometimes it fails: doesn't move all objects and/or move objects with another object style...

Moreover, when it fails - there are totally random results...

Not sure if it's a script or InDesign bug.

Topics

Scripting

Views

246

Likes

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

Move ObjectStyle to Layer

Engaged ,
May 05, 2018

Copy link to clipboard

Copied

Hi,

I made a script that prompts for object style and layer, then moves all objects with selected object style to the selected layer.

Here's a link to .zip archive that contains script and .indd / .idml test files - Dropbox - MoveObjects2Layer.zip

The problem is that sometimes script works just fine, but sometimes it fails: doesn't move all objects and/or move objects with another object style...

Moreover, when it fails - there are totally random results...

Not sure if it's a script or InDesign bug.

Topics

Scripting

Views

247

Likes

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
BarlaeDC LATEST
Adobe Community Professional ,
May 07, 2018

Copy link to clipboard

Copied

hi,

A quick look at the code and it looks like you are not handling groups of items, don't know if that is the specific issue you are having, if you group any of the items, then they don't move at all, will continue to investigate but thought I would let you know.

Hope this helps

Malcolm

Likes

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
Reply
Loading...