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

InDesign Server CC 2021 - Find color

Community Beginner ,
Sep 10, 2021 Sep 10, 2021

Copy link to clipboard

Copied

Hi everyone,

 

I'm facing a very strange issue on InDesign Server CC 2021.

 

I can't find color using app.findTextPreferences.findWhat...

I receive an error saying that "findWhat" is not part of object "findTextPreference"... but yes it is !

It works on InDesign CC 2021 on my computer but not on InDesign Server.

 

I think there are a lot of issues around colors because i can't remove colors too.

example : myOldColor.remove(myNewColor)

or 

myOldColor.remove


Error : Can't remove this color

 

Can you help me ?

 

Thanks.

 

Cyril

 

 

TOPICS
Bug , Scripting , SDK

Views

441

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
Advocate ,
Sep 10, 2021 Sep 10, 2021

Copy link to clipboard

Copied

Can you be able to share the file on which you are getting this issue?

 

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 Beginner ,
Sep 10, 2021 Sep 10, 2021

Copy link to clipboard

Copied

Hi,

 

Errors are visible on a new simple document.
With language VBScript, example :

 

Set ID = CreateObject("IndesignServer.Application.2021")

'New Document
Set CurDoc = ID.Documents.Add

'New color
Set NewColor1 = CurDoc.Colors.Add
NewColor1.Name = "Test"
NewColor1.ColorValue = Array(71, 20, 100, 10)

'Init Color FindWhat    ----> ERROR
ID.FindColorPreferences.FindWhat = NewColor1 

'Add textframe on the first page
Set CurItem = CurDoc.Pages.Item(1).TextFrames.Add

'Fill textframe with new color
CurItem.FillColor = NewColor1

'Delete color     ----> ERROR
NewColor1.Delete

 

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 Beginner ,
Sep 10, 2021 Sep 10, 2021

Copy link to clipboard

Copied

I also tried with Javscript for the issue with findColorPreference.

Same error...

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
New Here ,
Sep 12, 2021 Sep 12, 2021

Copy link to clipboard

Copied

Hello,

 

I recently upgraded to InDesign Server 2021.

 

I have the same issues when removing a swatch with the remove method.
I got the error 'This color cannot be removed.'.
But with the same script with InDesign Client, the color is removed.

 

Regards,

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 12, 2021 Sep 12, 2021

Copy link to clipboard

Copied

Please report this bug on (InDesign user voice).

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 Beginner ,
Sep 13, 2021 Sep 13, 2021

Copy link to clipboard

Copied

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 Beginner ,
Sep 13, 2021 Sep 13, 2021

Copy link to clipboard

Copied

LATEST

Hi,

 

Do you find an other way to remove/replace color ?

 

"Find and replace" color is also not working...

 

Than you

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