• 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: Quark XPress styles?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark XPress styles?


  • Subject: Re: Quark XPress styles?
  • From: "G?ran Ehn" <email@hidden>
  • Date: Fri, 02 May 2003 00:04:28 +0200

I'm not sure I understand what you are trying to do here but a simple approach is to count stories of document 1 and then you can loop them in order to give each story a name, having a list of names on your stories will allow you to address each story individually. Hence you can ask for the name of character style or paragraph style of a story text style ranges and set a new style on a specific range style. However you should know that in QX5 there is a bug. Two paragraphs having the same setting except one having an indent. (ie. "bread8pt" and bread8pt_indent) This will return both paragraphs as one range, a simple workaround would be to change one of the to paragraph styles font size to 7.999pt. And also you should know that asking for "style sheet" will in fact return the paragraph style only. If you want character style then "character style" it is. Allthough, if non applied you'll get an error, use a "try" to trap that. Hope this will give you a push.
Regards
Goran Ehn


On Thu, 1 May 2003 17:24:35 -0400
"A. Sasaki" <email@hidden> wrote:
Thanks.

The part I'm really stuck on is getting every instance of a character-based style sheet and displaying a list of the strings with that particular style. It's to provide feedback to a group of writers and copy editors who are tagging text with no apparent visual style, so they're styling entire sentences, paragraphs, including spaces & punctuation, etc.

Andrew


On Thursday, May 1, 2003, at 03:35 PM, email@hidden wrote:


I've been thru the Quark XPress scripting dictionary and can't seem to
find the correct syntax to get and set the style sheet info for text.
I need to be able to search for text with a given style sheet
(character or paragraph), replace it if necessary, and generate a
report listing the text changed. Any assistance is appreciated...


Here is a start-

-- gets name of style applied
tell front document of application "QuarkXpress"
tell text box 1
get name of style sheet of paragraph 1
end tell
end tell

-- sets style
tell application "QuarkXpress"
tell story 1 of document 1
set style sheet of paragraph 1 to "myStyleSheet"
end tell
end tell
_______________________________________________
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.
_______________________________________________
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: Quark XPress styles? (From: "A. Sasaki" <email@hidden>)

  • Prev by Date: Re: Quark XPress styles?
  • Next by Date: Bug in Eudora?
  • Previous by thread: Re: Quark XPress styles?
  • Next by thread: Re: Writing a script that *unmounts* servers
  • Index(es):
    • Date
    • Thread