• 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 6, 10.3.3 Every character whose character is "$"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark 6, 10.3.3 Every character whose character is "$"


  • Subject: Re: Quark 6, 10.3.3 Every character whose character is "$"
  • From: Hans Haesler <email@hidden>
  • Date: Tue, 11 May 2004 08:23:22 +0200

On Mon, 10 May 2004, Jason Bourque wrote:

>I am trying to set every character where it is "&" to superior of the
>current text box. I can get to the text box but the whose clause is kicking
>my butt. Any help is greatly appreciated.
<snip>
>Set style of every character whose contect is "$" to {on stlyes: "superior"}

Jason,

use 'every text' (instead of character), it will be faster.
Then: replace 'whose contect is' by 'where it is'.
And: you don't need 'on styles'. Last thing but one: use a try wrapper
(to avoid an error message when there is no "$" character.
---
tell document 1 of application "QuarkXPress 6.1"
tell current box
tell story 1
try
set style of every text where it is "$" to superior
end try
end tell
end tell
end tell
---
Last thing: when run a second time, 'superior' is set back to 'plain'.

---
Hans Haesler <email@hidden>
_______________________________________________
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: Photoshop - elliptical selections (From: Dave Balderstone <email@hidden>)
 >Quark 6, 10.3.3 Every character whose character is "$" (From: Jason Bourque <email@hidden>)

  • Prev by Date: Disabling sudoers temporarily
  • Next by Date: Re: Disabling sudoers temporarily
  • Previous by thread: Quark 6, 10.3.3 Every character whose character is "$"
  • Next by thread: Finder - application file id
  • Index(es):
    • Date
    • Thread