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

Re: Handlers


  • Subject: Re: Handlers
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 28 Apr 2001 21:28:31 +1000

On 28/4/01 9:17 PM +1000, Robert Poland, email@hidden, wrote:

> As usual when the big Handler discussion was going on I didn't have a
> use for it - now I have a problem. When the handler is called it acts
> as if it isn't, it just goes on by. I have looked in "The TAO of
> ASpplescript", "Applescript Handbook" and on the web. I think I'm
> doing as the examples seem to show.
>
> Example, in part;
>
> tell application "Finder"
> if not (folder "name of disk" of disk "Ram Disk" exists) then
> My creatIt --or just creatIt
> end if
>
> on creatIt ()
> beep 4
> -- create file
> end createIt

Try this:

tell application "Finder"
if not (folder "name of disk" of disk "Ram Disk" exists) then
my creatIt() --or just creatIt
end if
end tell

on creatIt()
beep 4
-- create file
end creatIt

--
Shane Stanley, email@hidden


References: 
 >Handlers (From: Robert Poland <email@hidden>)

  • Prev by Date: Handlers
  • Next by Date: Re: Getting a string on the clipboard in OE
  • Previous by thread: Handlers
  • Next by thread: Re: Handlers
  • Index(es):
    • Date
    • Thread