Re: ()"#%&/=!!! QuarkXpress
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