List basics: Contains (quark)
List basics: Contains (quark)
- Subject: List basics: Contains (quark)
- From: Sam <email@hidden>
- Date: Mon, 26 Dec 2005 18:39:50 -0500
This is so basic, but I'm not seeing what I'm doing wrong. I've spent all afternoon trying to get this to work.
I'm trying to get the on Styles of a Quark string.
tell application "QuarkXPress"
tell document 1
tell story 1
tell text style range 14
set theStyle to (style)
set a to {}
repeat with i from 1 to length of (on styles of theStyle)
set a to (item i of (on styles of theStyle))
if i contains "bold" then set a to g
end repeat
end tell
end tell
end tell
get g
end tell
The on Styles of this string are {bold, italic, underline}
but the result of g is null {}
I've tried i= "bold", {bold} is in i, lots of different ways.
I can get item i of this list, but basic comparisons are not returning true.
Please show me what I'm blind to, thanx, sam
PS: 10.3.9 and Quark 6.5 _______________________________________________
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