()"#%&/=!!! QuarkXpress
()"#%&/=!!! QuarkXpress
- Subject: ()"#%&/=!!! QuarkXpress
- From: Håvard <email@hidden>
- Date: Sat, 18 Nov 2000 18:59:03 +0100
Hello wonderful list.
I am working on a script applying style specs to text in quark. I
need my script to recognize empty lines so I had something like
if paragraph x of selection is "" then ....
which failes on some lines as quark seems to return "" when
paragraphs does meet certain criterias.
If I make a text-box in a quark doc, and type the following three
lines of text in it:
()"#%&/=!!!
()"#%&/=!!!test
select it and run this:
tell document 1 of app "QuarkXPress Passport 4.11"
tell current box
repeat with i from 1 to count paragraphs
paragraph i
end repeat
end tell
end tell
count every paragraph of current box of document 1
--> 3
get paragraph 1 of current box of document 1
--> ""
get paragraph 2 of current box of document 1
--> ""
get paragraph 3 of current box of document 1
a--> "()\"#%&/=!!!test"
quark returns the first line as "" and not "()"#%&/=!!!" as I would
expect. Is this a feature I can turn off, or get around?
Hevard
--
***********************************
WINDOWS - Will Install Needless Data On Whole System