I have two problems with my latest project of reading fields from an XML file and using that text to change the focus of my Xpression Studio sequence.
I need to be able to search my XML fields for a particular rundown.
My XML:
<runningorders>
<ro slug="WEDNESDAY GMA Cut-Ins" roid="xxxxxxx">
<story id="xxxxxxx" slug="RADIO HIT 5:45" headline="545" qualifier="a1" status="PLAY"/>
<story id="xxxxxxx" slug="RADIO HIT 6:45" headline="645" qualifier="a2" status="STOP"/>
<story id="xxxxxxx" slug="RADIO HIT 7:45" headline="745" qualifier="a3" status="STOP"/>
<story id="xxxxxxx" slug="WEATHER" headline="wx cc" qualifier="a4" status="STOP"/>
</ro>
</runningorders>
Based on a successful macro for another project, I think... runningorders\ro<slug=@runningorder@>\story\headline ...should work, but it doesn't.
Once I get the text, I need to SetFocus in my sequence group...I cobbled this script together and it will compile, but doesn't change the focus.
dim Sequence as xpSequencer
dim ShotBox as xpTakeItemGroup
dim StaticID as xpTextObject
Self.GetObjectByName("StaticID",StaticID)
Sequence.GetGroupByName("ShotBox",ShotBox)
Sequence.SetFocus("StaticID.text")
Does anybody have an idea what I am doing wrong....well, other than habitually biting off more than I can chew?
Thanks,
James.
------------------------------
James Hessler
WAAY (HEARTLAND MEDIA)
------------------------------