"Set value of text field" doesn't work

Hello,

I’ve a problem with a script, no an error but the ligne code doesn’t do anything :


Tell application "System Events"
Tell process "AppleWorks 6"
	 keystroke "p" with command down
	 click button "Save as PDF..." of UI Element 5 of window "Print"
	 Tell window "Save as File"
		 set value of text field 1 to "toto.pdf"
		 click button "Save"
	 end tell
end tell
end tell

All is normal until the function “set value of text field 1 to “toto.pdf””

I tried “set content of text field” “set the contents of text field” “set title of…” but all don’t work.

I’m on Mac OS 10.3.7 with System Event 1.2.1

Thanks for your help

Geff[