I have tried and tried to get my script to work again but every time I run the print command it starts to work and then dies and crashes Quark right out in the process. I want to print as postscript but neither command works. See below:
tell application "QuarkXPress"
activate
tell document 1
tell page 1
set psFilePath to path to desktop as string
set psFilePath to psFilePath & "TESTFILE.ps"
print PostScript file psFilePath
end tell
end tell
end tell
If anyone could run the above and let me know if you get the same result as me I’d appreciate it. Incidentally this is just one action out of a much larger script which all works perfectly on a Panther machine.
Cheers for the help in advance.
Browser: Safari 412
Operating System: Mac OS X (10.4)
Hi!
I discovered the same problem… with
on run {vCheminEtNom, vPathSaveTemp}
set vPathSaveTemp to vPathSaveTemp as string
tell application “QuarkXPress”
save front document in vPathSaveTemp
tell front document
print PostScript file vCheminEtNom
end tell
end tell
end run
before it was working with panthers…
Model: powerbook
Browser: Firefox 1.0.1
Operating System: Mac OS X (10.4)
Just ran with some error reporting in the script. I got an error of: Quark got an error: Connection is invalid [-609]
I put this bit of code in a tr block for the whole script:
try
tell application “QuarkXPress”
activate
tell document 1
tell page 1
set psFilePath to path to desktop as string
set psFilePath to psFilePath & “TESTFILE.ps”
print PostScript file psFilePath
end tell
end tell
end tell
on error errmsg number errnum
beep
display dialog errmsg & " [" & errnum & “]” buttons {“OK”} default button 1 with icon stop
return
end try
Or something like that. Can’t find any reference to it on the web. Can someone see if this is the same on their machine.
Cheers
Browser: Safari 412
Operating System: Mac OS X (10.4)