Skip to main content
Participating Frequently
April 10, 2012
Answered

InDesign scripting

  • April 10, 2012
  • 2 replies
  • 1019 views

I have inserted a label to the object eg.

obj.insertLabel("label1" , "value1");

Is there any method to remove the label instead of assigning empty string to "label1"?

This topic has been closed for replies.
Correct answer Laubender

There is an option with IDML.

If your object is a page item, you could export as a snippet, open the idms file in a text editor, remove the label in the snippet, place the snippet.

You just have to look for something like that:

<Label>

     <KeyValuePair Key="String" Value="String"/>

</Label>

See also:

http://forums.adobe.com/message/2549168#2549168

Uwe

2 replies

LaubenderCommunity ExpertCorrect answer
Community Expert
April 10, 2012

There is an option with IDML.

If your object is a page item, you could export as a snippet, open the idms file in a text editor, remove the label in the snippet, place the snippet.

You just have to look for something like that:

<Label>

     <KeyValuePair Key="String" Value="String"/>

</Label>

See also:

http://forums.adobe.com/message/2549168#2549168

Uwe

Kasyan Servetsky
Legend
April 10, 2012

I think assigning empty string is the only option.

sal_iqkhnAuthor
Participating Frequently
April 10, 2012

I see... Thanks