🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9668

JS: Is there a way to place TEXT using script the same way GUI does ?

#9668
From: Algis_J
Date: Thu, 20 Jul 2006 08:42
19 lines
1180 bytes
Hello,

currently I'm drawing an empty frame, then selecting it and after i run 
script which begins like this:

var myFile= File.openDialog();
	if (myFile){
	app.selection[0].place (myFile);
	var mainFrame=app.selection[0];
	var myStory=app.selection[0].parentStory;

.... and so on....

But I need to draw an empty frame. Is there a way to place text file by 
script wihtout having empty text frame? Like in GUI: at first you select 
file, only then you draw textFrame...

Thank you,
Algis
Technical Details
Message-ID: <002CA7E9E22A27871447FBD9722255E9@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6d6cf8095b4dd578,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Algis_J@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: JS: Is there a way to place TEXT using script
 the same way GUI does ?
Message-ID: <002CA7E9E22A27871447FBD9722255E9@in.webcrossing.la2eafNXanI>
Date: Thu, 20 Jul 2006 01:42:04 -0700
Lines: 24
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing