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)