🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18877

labeling an image link

#18877
From: Sara Klemzak
Date: Fri, 14 Feb 2003 20:22
13 lines
1347 bytes
I'd like to label an image link so I can use this label later and, using the relink command, set the link to something else.

Here is what works:
tell application "InDesign 2.0.1"
	set the label of link 1 of active document to "myLink"
	relink link 1 of active document to "image2.eps"
	update link 1 of active document
	return the label of link 1 of active document
end tell

I'm stuck because, although I'm able to set and return the link label, when I change the relink line above to something like the following, I get an "Access Not Allowed" execution error:

relink (link where label is "myLink") of active document to "image2.eps"
Technical Details
Message-ID: <1de7dc5a.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed.tpinternet.pl!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,b838bca5815bf4d9,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-14 12:38:15 PST
From: "Sara Klemzak" <sara@fastwave.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!skynet.be!skynet.be!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: labeling an image link
Message-ID: <1de7dc5a.-1@WebX.la2eafNXanI>
Date: Fri, 14 Feb 2003 12:22:19 -0800
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit