• 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: combining open and run handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: combining open and run handlers


  • Subject: Re: combining open and run handlers
  • From: Rick Davis <email@hidden>
  • Date: Fri, 2 Apr 2004 06:38:26 -0500

On Apr 2, 2004, at 1:00 AM, Deivy wrote:

Message: 1
Date: Thu, 1 Apr 2004 19:55:24 -0500
To: Rick Davis <email@hidden>, email@hidden
From: Deivy Petrescu <email@hidden>
Subject: Re: combining open and run handlers

At 7:04 PM -0500 4/1/04, Deivy Petrescu wrote:
At 6:04 PM -0500 4/1/04, Rick Davis wrote:
I think this is probably a simple question, but
I can't seem to find the answer on my own. Can
I combine run and open handlers? In other
words can I make a simple application that will
do one thing if a file is dropped onto it using
an on open handler and also allow a choose file
dialog to be produced if the application is
double-clicked using an on run handler? Then
perform the same task as the droplet after a
file has been chosen?

Thanks and Have A Great Day.

Rick Davis
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

Do you mean:

on open
run
end open

on run
say "That is it!"
end run
--


Ooops... I misread your email.

this is a better example

on open
say "That is it!"

end open

on run
say "That is that!"
end run

--
Regards
Saudagues

Deivy
http://www.dicas.com


Thanks!

I thought I had tried it that way and it was attempting to do both. But I rewrote it per your instructions and all is well.

Rick
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Setting desktop position of disks
  • Next by Date: Batch PDF Conversions
  • Previous by thread: Re: combining open and run handlers
  • Next by thread: Is Paste Reference working in script editor 2?
  • Index(es):
    • Date
    • Thread