Article View: adobe.scripting.indesign
Article #18302AS - Is this a bug
From: Peter Truskier
Date: Sat, 05 Apr 2003 01:46
Date: Sat, 05 Apr 2003 01:46
25 lines
1400 bytes
1400 bytes
If I execute a snippet like the following:
set theItems to every page item
repeat with theItem in theItems
if content type of theItem is text type then
set contents of theItem to "Method 1"
end if
end repeat
Nothing happens; the original text of each item remains unchanged, though I can "get" the contents, I cannot "set."
And yet, the following bit does work:
set numItems to count page items
repeat with i from 1 to numItems
tell page item i
if content type is text type then
set contents to "Method 2"
end if
end tell
end repeat
What am I missing?
Thanks
Technical Details
Message-ID:
<1de89b7d.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,a4ae5830b29154bf,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-04 18:08:11 PST From: "Peter Truskier" <peter@premediasystems.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: AS - Is this a bug Message-ID: <1de89b7d.-1@WebX.la2eafNXanI> Date: Fri, 4 Apr 2003 17:46:00 -0800 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit