Article View: adobe.scripting.indesign
Article #14555[AS] What happened to my insertion point
From: Mark_Plattner
Date: Wed, 28 Jan 2004 15:33
Date: Wed, 28 Jan 2004 15:33
29 lines
1875 bytes
1875 bytes
Hi,
I have a script that sets the insertion point on a text frame, then later on when I set an asset from my library, it places it into the insertion point of that text frame instead of its usual place in the spread. What happened?
This is the part of the script that calls the insertion point and acts on it.
if AppStyl != character style "ProductInfoRootName" of myDocument then
set wordCount to wordCount - 1
set innyPoint to insertion point -1 of last character of word wordCount of �
mylistingtextFrame
set properties of innyPoint to {text contents:"<000d>"}
exit repeat
Here is the script that calls the library item and places it back into the innyPoint. I thought when the library places the object its just a free floating selection, and it was until altered things with the insertionpoint script above
tell myLibrary
--Get an asset by name.
set myAsset to asset myword
--Place the asset in the document.
place myAsset on last spread of myDocument
end tell
set theReturnFrame to item 1 of selection
when I set ReturnFrame, item 1 of selection is the insertion point. What the hell?
Any advice anyone could offer would be great.
Thanks,
mark
Technical Details
Message-ID:
<2ccfa133.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,588a5685da207d9b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-28 07:37:59 PST From: Mark_Plattner@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [AS] What happened to my insertion point Message-ID: <2ccfa133.-1@webx.la2eafNXanI> Date: Wed, 28 Jan 2004 07:33:41 -0800 Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit