Re: Getting a handler to use a value from a different handler?
Re: Getting a handler to use a value from a different handler?
- Subject: Re: Getting a handler to use a value from a different handler?
- From: Michelle Steiner <email@hidden>
- Date: Tue, 18 Oct 2005 12:33:41 -0700
Chris, I have a few questions about style, if I may.
On Oct 18, 2005, at 8:20 AM, Christopher Nebel wrote:
on AskTitle()
set d to display dialog "Title:" default answer ""
Why bother with "set d" if the script doesn't use the variable "d"?
set answer to text returned of the result
return answer
end
For that matter, why not this:
return (text returned of (display dialog "Title:" default answer ""))
on ReplaceText(replacement_text)
(* magic goes here *)
end
on run
set replacement_string to AskTitle()
ReplaceText(replacement_string)
end
And why not this:
replaceText (askTitle())
Just curious.
-- Michelle
--
if u cn rd ths u cn gt a gd jb, bt if u rt lk ths u r a mrn.
_______________________________________________
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