🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16290

Re: (AS) from Excel To Indesign - newbie

#16290
From: Luca_Stefano_Grioni
Date: Wed, 01 Oct 2003 21:23
32 lines
1612 bytes
Hi , I'm here again.

I've modified the script gkindly provided by Shane to better fit my need ...

set n to 1
repeat
	tell application "Microsoft Excel"
		set x to Formula of Range ("A" & n)
	end tell
	if x = "" then
		exit repeat
	else
		tell application "InDesign 2.0"
			open "PRG_HD_Luca:prova_Mecenate:myMaster"
			set myTextFrame to make text frame
			set geometric bounds of myTextFrame to {"6p0", "6p0", "18p0", "18p0"}
			set text of myTextFrame to x
			apply style "stileluca"
			save document 1 to "PRG_HD_Luca:prova_Mecenate:Result:" & x
			close document 1 saving no
		end tell
		set n to n + 1
	end if
end repeat

when i run the script I get this error :
can't make a class "txtf"
pointing the edit cursor to the string "set myTextFrame to make text frame" ...

anyone could suggest me some hints please ....

Thank you
Technical Details
Message-ID: <2ccd95f2.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd95f2.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,9f7e37f8a52776d9
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-01 14:37:56 PST
From: Luca_Stefano_Grioni@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: (AS) from Excel To Indesign - newbie
Message-ID: <2ccd95f2.2@webx.la2eafNXanI>
Date: Wed, 1 Oct 2003 14:23:19 -0700
References: <2ccd95f2.-1@webx.la2eafNXanI>
Lines: 35
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit