🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20264

Filemaker to ID2 trouble

#20264
From: steve budzynski
Date: Fri, 02 Aug 2002 14:27
36 lines
1907 bytes
This is my script: 

tell application "FileMaker Pro" 
	set recCount to count of records of database 1 
end tell 
repeat with i from -1 to recCount 
	tell application "FileMaker Pro" 
		tell database 1 
			set theName to cell "ProductName" of record i 
		end tell 
	end tell 
	tell application "InDesign 2.0.1" 
		tell document "Product Name" 
			set contents of text frame "ProductName" of document "Product Name" to theName 
		end tell 
	end tell 
end repeat 

This is my error log: 

tell application "FileMaker Pro" 
	count every record of database 1 
		--> 60 
	get cell "ProductName" of last record of database 1 
		--> "Joseph Perrier Brut NV" 
end tell 
tell application "InDesign 2.0.1" 
	set contents of text frame "ProductName" of document "Product Name" of document "Product Name" to "Joseph Perrier Brut NV" 
		--> InDesign 2.0.1 got an error: Can't set contents of text frame "ProductName" of document "Product Name" of document "Product Name" to "Joseph Perrier Brut NV". 

I can't figure this out. If I sit and stare any longer, my office workers are going to start checking my pulse. 

PS. ID2 on Mac 10.1.2 File Maker Pro 5.5 
Any advice? 

Thanks in advance
Technical Details
Message-ID: <ef9fdef.-1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2ee3c27b7634788b,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-08-02 07:42:39 PST
From: "steve budzynski" <steve@underdosed.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Filemaker to ID2 trouble
Message-ID: <ef9fdef.-1@WebX.aaQKaf7vad4>
Date: Fri, 2 Aug 2002 07:27:00 -0700
Lines: 41
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit