• 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: Stay Open Script Applications & Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stay Open Script Applications & Events


  • Subject: Re: Stay Open Script Applications & Events
  • From: Andrew Oliver <email@hidden>
  • Date: Mon, 03 Feb 2003 17:11:25 -0800

Stay Open scripts need a 're-open' handler to handle subsequent 'opening' of
the applications.

If I recall, you need:

on reopen
display dialog "I'm already open!"
end reopen

Andrew
:)

On 2/3/03 4:01 PM, "Brett" <email@hidden> wrote:

> I have the need for some script applications that will live in the Finder's
> toolbar. The launch time for these scripts can actually be longer than the
> run time so I wanted to be able to set the application to stay open and be
> re-runnable by clicking it in the Finder's toolbar.
>
> The app runs great on first launch, but when I next access the application
> (by again clicking the icon in the toolbar) the app comes to the front and
> nothing happens. That should mean that the app is getting an activate event-
> to test that, I put together the following script:
>
> --
>
> on open
> display dialog "Open"
> end open
>
> on run
> display dialog "run"
> end run
>
> on activate
> display dialog "activate"
> end activate
>
> --
>
> activate never gets called, but open works (if I drop something on the app)
> and run works. Nothing seems to get called when the app is simply activated.
>
> Anyone know what (if any) usable event is sent to the app when it is
> activated?
>
> -Brett
> _______________________________________________
> 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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Stay Open Script Applications & Events
      • From: Brett <email@hidden>
References: 
 >Stay Open Script Applications & Events (From: Brett <email@hidden>)

  • Prev by Date: Script Debugger: Erroneous error
  • Next by Date: Re: Stay Open Script Applications & Events
  • Previous by thread: Stay Open Script Applications & Events
  • Next by thread: Re: Stay Open Script Applications & Events
  • Index(es):
    • Date
    • Thread