[QuarkXPress 5] how to get "on styles" ?
[QuarkXPress 5] how to get "on styles" ?
- Subject: [QuarkXPress 5] how to get "on styles" ?
- From: Autocat <email@hidden>
- Date: Sat, 8 Jan 2005 12:37:43 +0100
Hi everyone,
In XPress 4 I have this script that I use to get the list of "on
styles" for a given text style range:
tell application "QuarkXPress"
activate
tell document 1
set theStyles to style of text style range 1 of text 1 of current box
set theOnStyles to on styles of theStyles
if class of theOnStyles is not list then coerce theOnStyles to list
return theOnStyles
end tell
end tell
the result something like: { "bold", "italic"}
In XPress 5.01, theStyles is set to for example «data tStSFFFF0001»,
and I just can't figure out how to extract the bold, italic etc...
set theOnStyles to on styles of theStyles
fails ("Can't get on styles of «data tStSFFFF0001».")
Any ideas anyone ?
Thanks very much
Laurent
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden