🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19525

Reference vs. Object Reference

#19525
From: Dave Saunders
Date: Sun, 15 Dec 2002 21:31
25 lines
1518 bytes
Color me confused. What is the difference between a reference and an object reference?

One practical difference is demonstrated by this pair of scripts. The first doesn't work, the second does:



tell application "InDesign 2.0.2" 
	set myRange to object reference of every document 
	tell myRange 
		search for "  " replacing with " " 
	end tell 
end tell

tell application "InDesign 2.0.2" 
	set myRange to a reference to every document 
	tell myRange 
		search for "  " replacing with " " 
	end tell 
end tell



I guess that a reference is an AppleScript entity while an object reference is an InDesign entity. Perhaps the issue is that you can have object references at a finer level than references? I guess I'm confused as to why we have/need both.

Dave
Technical Details
Message-ID: <1de70458.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,abd789129a3f14c3,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-15 13:37:39 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!proxad.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Reference vs. Object Reference
Message-ID: <1de70458.-1@WebX.la2eafNXanI>
Date: Sun, 15 Dec 2002 13:31:19 -0800
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit