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)