• 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
Basic Handler question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic Handler question


  • Subject: Basic Handler question
  • From: Sam <email@hidden>
  • Date: Tue, 2 May 2006 11:41:24 -0400

I am using one of Hanaan's Handlers from his book in my script. In a nutshell, here it is:

on round_number(the_number_to_round, the_decimal_precision)
set multiplier to 10 ^ the_decimal_precision
the_number_to_round * multiplier
round result
result / multiplier
end round_number

tell application "QuarkXPress"
tell image 1 

set scalarx to rouset scalarx to round_number(item 1 of (get scale as list) as real, 2)

end tell
end tell

watching the event log, I see that it's getting the item list, the number as real and it pulls in the handler round_number(99.99999, 2)
But the error then is "QuarkXpress got an error: image 1 of current box doesn't understand the round_number message."

Looking through the resources, I would think that Quark will get a value, but it's still seeing the handler being called.

This is probably something simple but I'm not seeing it, thanx, sam
 _______________________________________________
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: Basic Handler question
      • From: Laine Lee <email@hidden>
    • Re: Basic Handler question
      • From: Bill Briggs <email@hidden>
  • Prev by Date: Re: Finder Scripting Speed
  • Next by Date: Re: Basic Handler question
  • Previous by thread: Re: Putting a list of files in a particular order
  • Next by thread: Re: Basic Handler question
  • Index(es):
    • Date
    • Thread