Re: Basic Handler question
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