🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20884

Re: Applescript: make a text frame on a master page

#20884
From: Olivier Berquin
Date: Tue, 04 Jun 2002 10:05
42 lines
1985 bytes
Ole,
 
 Thanks !!!!
 
 If I understand, I can't use the same solution as QuarkXPress.  
 In my XPress doc, I've about 60 boxes on a master. Each of these boxes is named (i.e.: 'Main box', 'Header box', ...)
 How can I do this in InDesign? 
 Must I work with your solution:
 �set myMainFrame to master page item 1
 �set myHeaderFrame to master page item 2
 
 Here is a handler to write a new line in the 'Main box':
 
 --
 on PutANewLine(TheNewLine, ThePageNumber, TheStyleSheet)
 �tell application "QuarkXPress Passport� 4.11"
 ��tell text box "Main box" of page ThePageNumber of document 1
 ���copy (TheNewLine & return) to after last paragraph of story 1
 ���set style sheet of paragraph ParagraphCounter to style spec TheStyleSheet of document 1
 ��end tell 
 �end tell 
 end PutANewLine
 
 
 --
 on PutANewLine(TheNewLine, ThePageNumber, TheStyleSheet)
 �tell application "InDesign 2.0"
 ��tell page ThePageNumber
  ���set myMainFrame to master page item ???????
 
 ���tell myTextFrame
 ����set contents of it to "blablabla"
 ���end tell
 ��end tell
 �end tell 
 end PutANewLine
 
 
 
 TIA
 
 Olivier.
Technical Details
Message-ID: <ef8e3b9.1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8e3b9.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,8e47b5875d947fcb
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-06-04 03:07:28 PST
From: "Olivier Berquin" <ob@microscript.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Applescript: make a text frame on a master page
Message-ID: <ef8e3b9.1@WebX.aaQKaf7vad4>
Date: Tue, 4 Jun 2002 03:05:55 -0700
References: <ef8e3b9.-1@WebX.aaQKaf7vad4>
Lines: 46
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit