Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Use Script to Change a Cross-Reference Format

$
0
0

So now I tried:

 

//DESCRIPTION: Exploring the source of our one and only Cross Reference  
(function(){          var xRef = app.documents[0].hyperlinks[0];          var source = xRef.source;          for (p in source) {                    $.writeln(p + ": " + source[p]);          }}())

 

And this returns:

 

appliedFormat: [object CrossReferenceFormat]
hidden: false
name: Hyperlink 1
sourceText: [object Text]
appliedCharacterStyle: null
id: 484
label: 
isValid: true
parent: [object Document]
index: 0
properties: [object Object]
events: [object Events]
eventListeners: [object EventListeners]
isValid: true

 

And now we find a CrossReferenceFormat.

 

Dave


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>