Finding the hidden characters in Quark via AppleScript
Finding the hidden characters in Quark via AppleScript
- Subject: Finding the hidden characters in Quark via AppleScript
- From: Christopher MJ Tangora <email@hidden>
- Date: Fri, 7 Jan 2005 12:28:28 -0500
Hi all,
I am working on a script to identify text box overflows on linked text
boxes. Each box should have a hard return at the end of it (on a mac
it is the enter key, according to Quark Style Sheets it is a </c>).
However, whenever I get the last character of a text box, if it is a
hard return it comes back as "". If it has an overflow it comes back
as anything but "". The problem comes up when I try to compare the
result (char) to "". It just doesn't work. I'm hoping someone can
fill me in on how to make the hard return / carriage return readable in
Applescript from Quark. According to the code it should read out
"Freakn' bout time!" when the carriage return is the last character,
but it doesn't. Anybody know what I am missing?
Thanks!
Chris Tangora
386.681.2748
Production Services
Daytona Beach News-Journal Corporation
Daytona Beach, Florida 32117 - USA
code:
tell application "QuarkXPress"
tell document 1
set char to character -1 of current box
end tell
log char
if char is "" then
display dialog "freakin' bout time!"
end if
end tell
Event Log
tell application "QuarkXPress"
get last character of current box of document 1
""
(**)
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden