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

Re: Basic Handler question


  • Subject: Re: Basic Handler question
  • From: Bill Briggs <email@hidden>
  • Date: Tue, 2 May 2006 12:45:59 -0300

At 11:41 AM -0400 5/2/06, Sam wrote:
>I am using one of Hanaan's Handlers from his book in my script. In a nutshell, here it is:

 "In a Nutshell" is someone elses book. ;-)


>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


 You need to change this:

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

 to this

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

 (note the addition of "my" in there.)

Now it should work.


- web
 _______________________________________________
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: 
 >Basic Handler question (From: Sam <email@hidden>)

  • Prev by Date: Basic Handler question
  • Next by Date: Re: Basic Handler question
  • Previous by thread: Basic Handler question
  • Next by thread: Re: Basic Handler question
  • Index(es):
    • Date
    • Thread