• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ()"#%&/=!!! QuarkXpress


  • Subject: Re: ()"#%&/=!!! QuarkXpress
  • From: Hans Haesler <email@hidden>
  • Date: Sat, 18 Nov 2000 21:53:17 +0100

On Sat, 18 Nov 2000, Havard wrote:

>quark returns the first line as "" and not "()"#%&/=!!!" as I would
>expect. Is this a feature I can turn off, or get around?

Havard,

please select your box with the three paragraphs and run this:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
get word 1
end tell
end tell
---
The result is "test". Surprised? I think so.

Next run:
---
tell application "QuarkXPress 4.11"
delimit items of delimit table 1
end tell
---
The result is a list of 256 items with constants like:
{not word member, can start or end word, can be contained in word,
can start or end or be contained in word}

The list covers the characters from ASCII 1 through 255.

To get the value for one character you run:
---
tell application "QuarkXPress 4.11"
get delimit item "(" of delimit table 1
end tell
--> not word member

You may change the constants for every character, but I think
this would not be a good idea.

To get around of getting an empty string for your first paragraph:
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
set paraOne to text from character 1 to character -2 of paragraph 1
end tell
end tell
-->"()\"#%&/=!!!"

HTH,

Hans

---
Hans Haesler | email@hidden


  • Follow-Ups:
    • Re: ()"#%&/=!!! QuarkXpress
      • From: Hans Haesler <email@hidden>
References: 
 >()"#%&/=!!! QuarkXpress (From: Håvard <email@hidden>)

  • Prev by Date: Re: Quark 3 to Quark 4 Question
  • Next by Date: Re: InDesign 1.5 Scripting
  • Previous by thread: ()"#%&/=!!! QuarkXpress
  • Next by thread: Re: ()"#%&/=!!! QuarkXpress
  • Index(es):
    • Date
    • Thread