use dynamic index with XML Metadata

Post Reply
loicaigon
Advanced member
Posts: 379
Joined: Wed Jul 10, 2013 10:22 am

use dynamic index with XML Metadata

Post by loicaigon »

Hi,

I can't get to make this work. Let's say I have the file "foo-1".pdf
and some xml structure like
<nodes>
<node index="1" value="bar"/>
</nodes>

I wish I could set the node index based on the index I can find in the file name but I can't get to use a variable inside a variable :\

Any ideas ?

TIA

Loic
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: use dynamic index with XML Metadata

Post by gabrielp »

Yeah you need to script to put variables in variables I think viewtopic.php?f=13&t=1645&p=5855
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
loicaigon
Advanced member
Posts: 379
Joined: Wed Jul 10, 2013 10:22 am

Re: use dynamic index with XML Metadata

Post by loicaigon »

Hi Gabriel,

Indeed, thanks for your tip. I wrote the script but was curious if that could be achieved otherwise ;)

Loic
Post Reply