• 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
List basics: Contains (quark)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: List basics: Contains (quark)
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: hdiutil burn
  • Next by Date: NSInternalScriptError
  • Previous by thread: GC header gets pixilated
  • Next by thread: Re: List basics: Contains (quark)
  • Index(es):
    • Date
    • Thread