Extract art file names from quark files

Discuss XML import/export in QuarkXPress 8 & 9 (and before).

If you are interested in newer XML publishing formats that Quark offers, then please contact us about Modifier XML (QuarkXPress Documents as XML) in QuarkXPress Server or about Quark XML Author.
Locked
sspach
Posts: 3
Joined: 08 Mar 2011, 15:07

Extract art file names from quark files

Post by sspach » 08 Mar 2011, 08:18

how do you take a Quark 8 file and see the xml? We need to be able to extract art file names, file paths, page numbers art is on. To build a text file with the locaitons of all our art in all of our quark files. We currently use the BAdia official report plugin but that won't work in quark 8 soooo we need a way to pull out Art names and we heard Quark 8 has XML and maybe we could extract some data from that?

Jean-Marie Schwartz
Posts: 1174
Joined: 23 Nov 2004, 04:30

Extract art file names from quark files

Post by Jean-Marie Schwartz » 08 Mar 2011, 20:42

Why don't you use the Collect for Output feature? The report will give you all the information you're looking for. And much more. So you'll probably have to clean it to keep only the arts info you wish. Let us know.

sspach
Posts: 3
Joined: 08 Mar 2011, 15:07

Extract art file names from quark files

Post by sspach » 10 Mar 2011, 00:27

Would you know how to write an applescript to open multiple files to do a collect for output? Or know where i can find some script to do this?

Jean-Marie Schwartz
Posts: 1174
Joined: 23 Nov 2004, 04:30

Extract art file names from quark files

Post by Jean-Marie Schwartz » 21 Mar 2011, 21:56

Oops! Sorry! Didn't see your message. You must know that collect for output is not easily scriptable But searching this Forum, you should come accross Scripting_Ace's scripts both regarding collect for output (at least partially) and opening multiple Quark files.
On my side, I use this piece of code:
--COLLECT FOR OUTPUT
try
tell application "System Events"
tell application process "QuarkXPress"
set frontmost to true
click menu item "Collect for Output" of menu "File" of menu bar item "File" of menu bar 1
delay 2
keystroke "d" using command down -- to jump to the Desktop folder
delay 3
set {x, y} to position of button "New folder" of window "Collect for Output"
my move_and_click_mouse(x, y) -- this handler to click the New folder button
delay 2
keystroke [your_folder_name] -- I use a variable
keystroke return -- to OK
keystroke [report_file_name] -- I use a variable
keystroke return -- to OK
delay 5
keystroke return -- to OK the Font message that pops up then
end tell
end tell
on error the error_message number the error_number
set the error_text to "Error: " & the error_number & ". " & the error_message
display dialog the error_text buttons {"OK"} default button 1
return the error_text
end try

--== HANDLER CLICK OF MOUSE ==--
on move_and_click_mouse(x, y)
move mouse {x + 8, y + 8} -- a XTool command to move the cursor
click mouse using primary button -- click by XTool
end move_and_click_mouse

Just play with it to match your workflow. Add the piece of code to open multiple files, and you're done. HTH.

Locked

Return to “QuarkXPress 8 & 9: XML Import/Export - discontinued”