I’ve completed a
script that extracts image information (file path, name, resolution) for each
Quark page and exports the information into a csv file. Once all the csv files
for every page are created I have a terminal command to concat them into one
large file, this works fine.
One challenge however is as
well as getting the image info I would like to be able to extract one line of
text from the Quark pages into the csv file. This line of text always starts
with "Holiday no." but with a
different number for each item.
The idea here is to be able
to reference the image information with it's relevant holiday number.
I thought something like
this would work . . .
tell application
"QuarkXPress Passport"
tell document 1
get text of every text box
of every story whose text contains "Holiday no."
end tell
end tell
I also tried this code just
to see if I could extract by style but to no avail . . .
tell application "QuarkXPress Passport"
tell document 1
get text of every text style range of every story whose paragraph style is
"6 top ten body"
end tell
end tell
Any help appreciated, thanks.