[JS][CS5] Storing a variable in the document label


hi.

i need store id number of item document label.

 

i have tried:

mylabelstring = new string(mydoc.allpageitems[n].id)

mydoc.label=mylabelstring;

 

but got error

result: error: invalid value set property 'label'. expected string, received function data.

 

i can add id number by:

 

mydoc.label="713";

but need variable.

 

i have seen posts using function 'insertlabel' passing value , key.  'key' in this?

 

any ideas?

 

cheers

 

roy

 

hey roy!

 

take here: http://bit.ly/bxitfo

it's article insert , extract label document.

 

--

tomaxxi

http://indisnip.wordpress.com/



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support