Quark & Applescript


I’ve been reviewing all the posts I can find both here and at Quark but I’ve got an issue I just can’t resolve.

I’m trying to have Applescript open a Quark file and save it down to a different version. However; I’m getting hung up on opening the file. According to everything I’ve read the following should open a Quark 8 file in Quark w/o remapping the fonts:

tell application "QuarkXPress"
	open thisFileAlias remap fonts no
end tell

but every time I try to save it I get the message: Syntax Error. Expected end of line but found identifier” with the word ‘remap’ highlighted. Every sample script I’ve seen shows that syntax but Applescript doesn’t seem to like it.

Suggestions as to what I’m doing wrong?

Thanks in advance for your help!

What is thisFileAlias for kind of object? Quark wants file objects and is buggy with strings and aliases. I personally work with posix path so the code would look like

set theFile to posixPath as POSIX file
tell application "QuarkXPress"
	open theFile use doc prefs yes remap fonts no do auto picture import no with Suppress All Warnings

If that doesn’t work you should check if the quark dictionary installed. Can be found in /Library/ScriptingAdditions/QXPScriptingAdditions.osax.

Thanks for the advice! I tried your suggestion but I’m still getting the same message, highlighting ‘use’ and indicating a syntax error. I’ve looked in the dictionary and while it doesn’t really tell the syntax, it does suggest the same terms.