• 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: Finding the hidden characters in Quark via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the hidden characters in Quark via AppleScript


  • Subject: Re: Finding the hidden characters in Quark via AppleScript
  • From: Dana Hill <email@hidden>
  • Date: Fri, 7 Jan 2005 12:42:54 -0500

Chris,

I don't think this is exactly what you're looking for, and you probably already know this, but the following snippet finds out whether or not a text box overflows...of course, it also resizes accordingly until 'box overflows is false'. Perhaps it could be modified to work...

if box overflows then
repeat until box overflows is false or i ≥ 756 -- max text box size of quark template
set i to i + 10
set properties of it to {bounds:{"35.995 pt", "36 pt", i, "576 pt"}}
end repeat
end if

Dana Hill
eMarketer — "The First Place to Look"
www.emarketer.com
Phone: 603.734.2373
FAX: 603.734.2373
On Jan 7, 2005, at 12:28 PM, Christopher MJ Tangora wrote:

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

 _______________________________________________
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

References: 
 >Finding the hidden characters in Quark via AppleScript (From: Christopher MJ Tangora <email@hidden>)

  • Prev by Date: Finding the hidden characters in Quark via AppleScript
  • Next by Date: Fwd: Date computation
  • Previous by thread: Finding the hidden characters in Quark via AppleScript
  • Next by thread: FTP Server to dynamically create users
  • Index(es):
    • Date
    • Thread