Cross refence images In-Tools Scripts Forum

 
You must be logged in to post Login Register
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Cross refence images

No Tags
UserPost

5:27 am
04/27/2012


freelance_pnh

New Member

posts 0

Hi,

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:10 am
04/27/2012


Harbs

Admin

posts 118

Is the destination on the pasteboard?

No Tags

About the in-tools.com Forum

Forum Timezone: America/New_York

Most Users Ever Online: 24

Currently Online: JC
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 22
Topics: 88
Posts: 264

Membership:

There are 2519 Members
There has been 1 Guest

There are 2 Admins

Top Posters:

niftyix – 10
Adrian – 8
Ulrich Bogun – 8
Jahrod – 6
Mirek – 3
Saramax – 3

Recent New Members: Harbs, in-tools.com

Administrators: Harbs (118 Posts), G. Keys (11 Posts)