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

Move ObjectStyle to Layer

Engaged ,
May 05, 2018 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

379

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 ,
May 07, 2018 May 07, 2018

Copy link to clipboard

Copied

LATEST

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

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