Article View: adobe.scripting.indesign
Article #19069Re: Get a reference to a locked TextFrame
From: Olav Kvern
Date: Wed, 22 Jan 2003 08:28
Date: Wed, 22 Jan 2003 08:28
29 lines
1593 bytes
1593 bytes
Aristides--
There's no problem getting a reference to a locked frame, as shown in the following example:
Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application.2.0")
Rem Create an example document
Set myDocument = myInDesign.Documents.Add
Set myTextFrame = myDocument.Pages.Item(1).TextFrames.Add
myTextFrame.Locked = True
Rem Get a reference to the text frame
For myCounter = 1 To myDocument.Pages.Item(1).TextFrames.Count
If myDocument.Pages.Item(1).TextFrames.Item(myCounter).Locked = True Then
MsgBox "Found a locked text frame!"
End If
Next
So something else must be preventing you from getting the reference.
Is it possible that the locked frame is inside a group or pasted inside another text frame?
Thanks,
Ole
Technical Details
Message-ID:
<1de77dae.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de77dae.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,ce3236201736cacf X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-01-22 00:37:31 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Get a reference to a locked TextFrame Message-ID: <1de77dae.0@WebX.la2eafNXanI> Date: Wed, 22 Jan 2003 00:28:43 -0800 References: <1de77dae.-1@WebX.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit