Quark batch printing auto activate fonts not working

Using Quark 6.5 in OS 10.3.9 and Suitcase X1. When you open a Quark document the fonts auto activate because of the Suitcase setting. I have a droplet script to drag multiple Quark docs and print them all. When the script opens the document it doesn’t auto activate the fonts. I tried adding a delay after the open command but that doesn’t help. I can’t figure out why opening the document in the script would keep fonts from auto-activating. Anyone have any experience with this? Any ideas how to get the script to stop and let the fonts auto-activate?

Here is a test script I made up to try to work this out. I stripped out the printing part and just made it open the file and delay so I can see if the fonts activate.


-- This droplet processes both files or folders of files dropped onto the applet
on open these_items
	repeat with i from 1 to the count of these_items
		set this_item to (item i of these_items)
		set the item_info to info for this_item
		if folder of the item_info is true then
			process_folder(this_item)
		else if (alias of the item_info is false) then
			my process_item(this_item)
		end if
	end repeat
end open

-- this sub-routine processes folders
on process_folder(this_folder)
	set these_items to list folder this_folder without invisibles
	repeat with i from 1 to the count of these_items
		set this_item to alias ((this_folder as text) & (item i of these_items))
		set the item_info to info for this_item
		if folder of the item_info is true then
			process_folder(this_item)
		else if (alias of the item_info is false) then
			my process_item(this_item)
		end if
	end repeat
end process_folder

-- this sub-routine prints the files
on process_item(this_item)
	tell application "System Events"
		set the item_info to info for this_item
		if (alias of the item_info is true) then
			display dialog "No aliases!" buttons "Cancel"
		end if
		if (kind of item_info starts with "Quark") then
		else
			display dialog "This file is not a Quark document!" buttons "Cancel" default button "Cancel" with icon 0
		end if
	end tell
	tell application "QuarkXPress"
		open this_item use doc prefs yes remap fonts no do auto picture import yes
		delay 15
		display dialog "Did it work?"
	end tell
end process_item


Model: Mac G5
Operating System: Mac OS X (10.3.9)

Uh, never mind. I continued to experiment and found the problem.

I had to change the open line to:

open this_item use doc prefs yes remap fonts ask do auto picture import yes

Apparently, putting in “remap fonts ask” was the key. I guess that setting it to no was causing whatever trigger Suitcase uses to auto-activate fonts to be suppressed. Setting it to “ask” didn’t make a dialog box appear as I expected, it caused Suitcase to auto-activate. That must be the trigger for auto font activation.

Anyway, maybe this will help someone out there.