QuarkXPress 6 set image script no longer working

I’ve got a script that used to work, but no longer does since shadow coping to a new machine. Basically it’s for setting an image within a picture box. Here’s a snippet of my current code:

tell application "QuarkXPress"
activate

save document 1 in "Hard Drive:generalFile:out:NewDoc.qxd"

set thePath to "Hard Drive:generalFile:scripts:"
set imagePath to "Clients:Admin:Images:HighRes:"
set import styles to true
set PLRef to object reference of spread 1 of master document 1
set PRRef to object reference of spread 2 of master document 1
set OLRef to object reference of spread 3 of master document 1
set ORRef to object reference of spread 4 of master document 1
set name of PLRef to "PL-Product Left"
set name of PRRef to "PR-Product Right"
set name of OLRef to "OL-Overview Left"
set name of ORRef to "OR-Overview Right"


tell document 1
make new page at end with properties {master spread:PLRef}
set horizontal measure to inches
set vertical measure to inches
end tell

tell page 2 of document 1
make text box at beginning with properties {bounds:{".312",".5","9.188","5.5"}}
set story 1 of text box 1 to alias (thePath & "1body.txt")
make picture box at beginning with properties {bounds:{".314","2.887","1.964","5.5"}}
tell picture box 1
set image 1 to alias (imagePath & "MyImage.eps")
set runaround to item runaround
end tell
make text box at beginning with properties {bounds:{"6.207",".5","6.457","3.5"}}
set story 1 of text box 1 to alias (thePath & "1SubSection.txt")
set color of text box 1 to "Black"
make text box at beginning with properties {bounds:{"3.392",".5","5.392","1.477"}}
set story 1 of text box 1 to alias (thePath & "1TableHeader_1.txt")
make text box at beginning with properties {bounds:{"3.392","1.438","5.392","5.455"}, columns:"4", gutter:{"0.042"}}
set story 1 of text box 1 to alias (thePath & "1SpecTable_1.txt")
make text box at beginning with properties {bounds:{"4.934",".5","6.934","1.477"}}
set story 1 of text box 1 to alias (thePath & "1TableHeader_2.txt")
make text box at beginning with properties {bounds:{"4.934","1.438","6.934","5.455"}, columns:"4", gutter:{"0.042"}}
set story 1 of text box 1 to alias (thePath & "1SpecTable_2.txt")
end tell
end tell

Currently the code breaks at the ‘set image 1 to alias’ line. The error is:
QuarkXPress got an error:Folder some object wasn’t found.

If I try changing the line to read:

set image 1 to file ((imagePath & "MyImage.eps") as string)

I get the same error. I admit I only use applescript a few times a year so any suggestions that you can provide would be outstanding! :smiley:

Browser: Internet Explorer 6.0
Operating System: Mac OS X (10.2.x)

Looks like all I needed to do was update Quark to 6.5. Now it works fine.