Need help with quark 6.5 applescript to chg path to aux dict

I’m very new to writing applescript and would appreciate any help I can get with this one.

I’m trying to change the path to the auxiliary dictionary used by many quark 6.5 documents. My company installed a new server which changed the path name (couldn’t avoid) and now I’m having to manually switch the path to the aux dict. I have tried writing a script and keep getting errors. At this point, I’m getting “error type 314.” Here’s what I have so far:

on open thisFolder
	activate me
	set itemsInFolder to list folder thisFolder without invisibles
	
	repeat with i from 1 to count of itemsInFolder
		set thisItem to alias ((thisFolder as text) & (item i of itemsInFolder))
		
		tell application "QuarkXPress"
			activate
			open thisItem --use doc prefs no do auto picture import no
			
			tell project 1
				tell layout space 1
					set dictPath to "X2:Customer:Project:Subject:Misc:2008 Spring:Dictionaries:Project_Subject.qdt" as alias
					set properties to {auxiliary dictionary path:dictPath as alias}
				end tell
			end tell
			save document 1
			close document 1
			
		end tell
		
	end repeat
	
	activate me
	beep 2
	display dialog "Script completed successfully"
end open

Again, I would really appreciate any help.

Thanks so much,
Janine

Model: G4 PPC
AppleScript: 2.1.1
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

You don’t say where exactly the errors are coming from but this part works for me with setting the path in quark.

tell application "QuarkXPress"
	activate
	tell project 1
		tell layout space 1
			set dictPath to ((path to desktop) as string) & "TEST.qdt"
			set auxiliary dictionary path to dictPath as alias
		end tell
	end tell
end tell

Thanks Mark. Your script worked; however, I still can’t get it to work when I incorporate it into mine. I’m still getting error 314. When I click on edit, the cursor is at the very end of the script. I copied much of this script from another I have that does work.

Thanks again,
Janine