• 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
Re: QuarkXPress - Text Style Ranges: is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuarkXPress - Text Style Ranges: is this a bug?


  • Subject: Re: QuarkXPress - Text Style Ranges: is this a bug?
  • From: Luca BASSINI <email@hidden>
  • Date: Sun, 28 Dec 2003 22:43:50 +0100

On 28/dic/03, at 22:10, Hans Haesler wrote:

Hello Luca,

I can confirm your findings. It looks like XPress is seeing a
second line after the first one of style sheet range 1.

A workaround? What about this one (since there are only 2 lines)?
---
set countChars to {}
tell document 1 of application "QuarkXPress 5.01"
tell current box
tell story 1
repeat with i from 1 to count of text style ranges
tell text style range i
set end of countChars to (count of characters)
end tell
end repeat
end tell
end tell
end tell
countChars
---
It addresses the text style ranges but not their lines.

---
Hans Haesler <email@hidden>

Hans,
I'm happy to be in contact with you another time ;-) Now suppose the text box has a non-fixed number of lines for every text style range and you want to return the number of characters of every last line :-(

it seems to be impossible :-/

Regards
Luca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: QuarkXPress - Text Style Ranges: is this a bug? (From: Hans Haesler <email@hidden>)

  • Prev by Date: Shell-Perl-AppleScript scripting
  • Next by Date: [OT] Verification required?
  • Previous by thread: Re: QuarkXPress - Text Style Ranges: is this a bug?
  • Next by thread: ScriptingAdditions not found
  • Index(es):
    • Date
    • Thread