• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Extracting info from Quark 4 stylesheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extracting info from Quark 4 stylesheets


  • Subject: Extracting info from Quark 4 stylesheets
  • From: email@hidden
  • Date: Thu, 19 Jul 2001 16:57:42 -0700

My project of extracting data from Quark stylesheets has hit another little
snag. Here's a snippet:

tell document 1 of application "QuarkXPressb" 4.11"
set styleList to ""
repeat with x from 1 to count of style specs
tell style spec x
set styleList to ""
set styleList to styleList & (name of (document 1)) & tab &
(name) & tab

tell paragraph attributes
set styleList to styleList & B,
(base shift) & tab & (font) & tab & (horizontal
scale) & tab & B,
(shade) & tab & (size) & tab & (track) & tab &
(vertical scale) & tab & B,
(drop cap characters) & tab & (drop cap lines) &
tab & (first indent) & tab & B,
(grid lock) & tab & (justification) & tab & (keep
all) & tab & B,
(keep together) & tab & (keep together end) & tab
& (keep together start) & tab & B,
(keep with next) & tab & (leading) & tab & (left
indent) & tab & (relative leading) & tab & B,
(right indent) & tab & (space after) & tab &
(space before) & return & return

end tell
end tell
display dialog styleList
end repeat
close saving no
end tell


What happens is that the info is extracted just fine from the first
stylesheet. The "repeat" loop that looks for the next style starts off with
the proper document and style name (i.e., at the "style spec" level), but
the paragraph attributes are all weird and wordy, like this:

CTO/Stylebook 12.js Descriptions 
CHSStypenulldrccshordrclshor
fidtFXHM

grlobool
hjstobj
C;


wanttype
HYPJfromobj
T


wanttype

docufromnull

formenum
nameseldTEXT
b&CTO/Stylebook 12.jsE8formenum
nameseldTEXT

DMD b" Bodypjstenum
leftkpalbool

wanttype


. . . . etc.

Anyone know why the second and subsequent passes through this loop yield
garbage from the paragraph attributes of the style specs?


- david

---
David Minehart
Publishing Systems Manager
InfoWorld Media Group
650-312-0524


  • Follow-Ups:
    • Re: Extracting info from Quark 4 stylesheets
      • From: Hans Haesler <email@hidden>
  • Prev by Date: SOAP and XML with AppleScript?
  • Next by Date: Re: Empty trash with locked items
  • Previous by thread: Re: SOAP and XML with AppleScript?
  • Next by thread: Re: Extracting info from Quark 4 stylesheets
  • Index(es):
    • Date
    • Thread