Filemaker: Refresh Window with AS

I’m trying to refresh window 1 in Filemaker through an Applescript that is within a Filemaker script.

I have an applescript that has a repeat in it. I want the Filemaker window to refresh after every new record created within that applescript repeat. I have tried to use "do script “Refresh”, where “Refresh” is a script that does the script step “Refresh Window” but no luck there. Below is the part of the script that I’m working on…

Help?

Thanks in advance!

Martha

		tell application "FileMaker Pro 8"
				tell window 1
					set newRec to the ID of (create new record)
					go to record ID newRec
					set cell "TheName" of current record to theName
					set cell "TheContent" of current record to theContents
					save record
					do script "Refresh" --Here's where I need the Filemaker window to Refresh
				end tell
			end tell

this worked form me I’m using FMP advanced though


tell application "FileMaker Pro Advanced"
	tell database "artcode"
		tell window 1
			set newRec to the ID of (create new record)
			go to record ID newRec
			--set cell "TheName" of current record to theName
			--set cell "TheContent" of current record to theContents
			save record
			do script "Refresh" --Here's where I need the Filemaker window to Refresh
		end tell
	end tell
end tell

I’m not sure if it is case sensitive or not

is there an error your getting ?

I am having the same problem, I am using Filemaker Developer 11. If I run the applescript from the editor it works fine, but if I run the applescript from within a filemaker script I get no refresh effect! No error comes out. did you guys solved this problem?