🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2379

[JS CS3] Releasing Anchored Objects

#2379
From: Skempy
Date: Fri, 02 Jan 2009 09:48
22 lines
1323 bytes
Hello,

The following script places a libray item as an anchored object...

var myDoc = app.documents[0];
var myFrame = app.documents[0].textFrames.item("myTarget");
var myInsertPoint=myFrame.parentStory.paragraphs.item(0).insertionPoints.item(0)
var myLibraryItem=app.libraries[0].assets[0]; myFrame=myLibraryItem.placeAsset(myInsertPoint);
with(myFrame[0].anchoredObjectSettings){
anchoredPosition = AnchorPosition.anchored;
anchorPoint = AnchorPoint.topLeftAnchor;
horizontalReferencePoint = AnchoredRelativeTo.anchorLocation;
horizontalAlignment = HorizontalAlignment.leftAlign;
anchorXoffset = 0;
anchorYoffset = 0;
}

How do I now release my anchored library item and then send it behind the text in the text frame "myTarget" ?

Thanks

Simon Kemp
Technical Details
Message-ID: <59b7683a.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,f8aa02f04e7a8179,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Skempy@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [JS CS3] Releasing Anchored Objects
Message-ID: <59b7683a.-1@webcrossing.la2eafNXanI>
Date: Fri, 2 Jan 2009 01:48:58 -0800
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit