• 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: Getting a handler to use a value from a different handler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting a handler to use a value from a different handler?
      • From: Christopher Nebel <email@hidden>
References: 
 >Getting a handler to use a value from a different handler? (From: Brett Conlon/HU/Music-AU/SONY <email@hidden>)
 >Re: Getting a handler to use a value from a different handler? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: filemaker applescript question
  • Next by Date: osascript in multiuser environment
  • Previous by thread: Re: Getting a handler to use a value from a different handler?
  • Next by thread: Re: Getting a handler to use a value from a different handler?
  • Index(es):
    • Date
    • Thread