Cross refence images In-Tools Scripts Forum


I have tried this script in Indesign CS5:
var name = prompt("Pick a name","","Create anchor in graphic frame"); if(name){ makeObjectAnchor(app.selection[0],name); } function makeObjectAnchor(object,destinationName){ var tf = object.textFrames.add(); app.documents[0].hyperlinkTextDestinations.add(tf.parentStory.insertionPoints[0],{name:destinationName}); }
The thing is that I end up with <PB> instead of the real page number in the source text...
In the cross-references panel, I have PB written in red and it says "Invalid destination: on the pasteboard"
Can someone help please?
6:46 am

08/14/2017

Thanks a lot for your help
Thanks for sharing such wonderful information. Împrumut online
Most Users Ever Online: 197
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
jacksonlame: 18
niftyix: 10
Ulrich Bogun: 9
jackferthomas: 8
Adrian: 8
Soyablack123: 7
Member Stats:
Guest Posters: 1
Members: 6092
Moderators: 0
Admins: 2
Forum Stats:
Groups: 3
Forums: 23
Topics: 279
Posts: 705
Newest Members: msilverz, sophiakalvin, kivihi, Mark Scull, Krzysztof, cxLBwtPcDnAIerO
Administrators: In-Tools: 11, Harbs: 201