Article View: adobe.scripting.indesign
Article #255Trying create a custom namespace
From: sovtek
Date: Thu, 19 Mar 2009 03:37
Date: Thu, 19 Mar 2009 03:37
9 lines
1338 bytes
1338 bytes
Hi i am trying to add custom xmp data in a custom namespace in my indesign script. I have tried this through jsx and flex (patch panel) and still cannot get it to work.
the code
doc.metadataPreferences.createContainerItem('http://www.sendmyad.com/1.0/','email',0,ContainerType.BAG); doc.metadataPreferences.setProperty('http://www.sendmyad.com/1.0/','email/*[1]','someone@sma.com');
no matter what i do the xmp is not registered.
I suspect this is because i dont have a registered namespace. If this is the case is there a way to register a new namespace. In dealing with the xmp core i have found it is easy to register a new namespace, but with the scripting library, i can find nothing.
Please help i have been researching for days and cannot find the solution to this matter.
Technical Details
Message-ID:
<59b85660.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,ef5b4bc03a4a6f17,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: sovtek@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Trying create a custom namespace Message-ID: <59b85660.-1@webcrossing.la2eafNXanI> Date: Wed, 18 Mar 2009 20:37:47 -0700 Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit