Talk to Filemaker Pro 8

Hello,

I´m slowly getting desperate, maybe someone can help me. I try to use AS to get a Filepath into Filemaker. I´m doing it with this script:


global dat_Pfad_Original
tell application "Finder"
	set dat_Pfad_Original to (choose file) as string
end tell
tell application "FileMaker Pro"
		tell database "IMVS_Bildarchiv"
			set cell "dat_Pfad_Original" of current record to dat_Pfad_Original
		end tell
	activate
end tell

The problem is, that the script workss sometimes and sometimes I get back the error message -10011 which says that Filemaker is already in use. If I tell Filemaker to try “set cell “dat_Pfad_Original” of current record to dat_Pfad_Original”, then instead of an error message the cell “Dat_Pfad_Original” stays empty. Does anyone know ho to solve this problem?

Thanks for every hint,

Florian

AppleScript: 1.10.3
Browser: Safari 417.8
Operating System: Mac OS X (10.4)

Thank you so much Jacques, now it works properly.