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

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


  • Follow-Ups:
    • Re: Finding the hidden characters in Quark via AppleScript
      • From: Dana Hill <email@hidden>
  • Prev by Date: Re: Date computation
  • Next by Date: Re: Finding the hidden characters in Quark via AppleScript
  • Previous by thread: Setting print setup in Quark 5
  • Next by thread: Re: Finding the hidden characters in Quark via AppleScript
  • Index(es):
    • Date
    • Thread