• 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: Running a stay open applet in OS X... :-(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a stay open applet in OS X... :-(


  • Subject: Re: Running a stay open applet in OS X... :-(
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 21 Apr 2002 11:20:08 -0700

On 4/21/02 10:40 AM, "Mr Tea" <email@hidden> wrote:

> This from Paul Berkowitz - dated 21/4/02 06.00 pm:
>
>>> How can I fix this so that the applet stays in the background when it starts
>>> up for the first time?
>>
>> Tell it to launch instead of run.
>
> That doesn't work either. It still comes to the front.
>

You must have something in the script that gets it to activate. I just
tested, and found that 'launching' now opens an app, so it appears in the
dock, but it now not only stays in the background - it doesn't run. It just
sits there. This is actually desirable behavior. i like it. i can then get
it to run in the background by telling it to run after telling it to launch.
And with a reopen handler, it does the same every time. here's my setup:

The following is saved as a Stay-Open Application (OS X):

----------Beep in Background-------------

on run

beep

delay 2

beep

delay 2

-- activate

beep

-- display dialog "Here I am!"

-- tell application "Microsoft Entourage" to activate

end run

on reopen
run
end reopen

--------------------------------------

[Remove the commenting out to test activation in foreground].

The following is saved as a Compiled Script in Entourage's Script Menu Items
folder. It can be called from menu, keyboard shortcut, schedule, or rule:

--------------------Get Background Beep ----------------

property backgroundApp : ""

if backgroundApp = "" then
set backgroundApp to choose file of type {"APPL"}
end if

set backgroundAppPath to backgroundApp as string

ignoring application responses
tell application backgroundAppPath
launch
run
end tell
end ignoring


----------------------------------



It works, Mr. Tea, and stays in the background. Were you adding some
behavior that brought it to the front?


--
Paul Berkowitz
_______________________________________________
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: Running a stay open applet in OS X... :-(
      • From: Mr Tea <email@hidden>
References: 
 >Re: Running a stay open applet in OS X... :-( (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Running a stay open applet in OS X... :-(
  • Next by Date: Re: Capitilization and OSX dictionary
  • Previous by thread: Re: Running a stay open applet in OS X... :-(
  • Next by thread: Re: Running a stay open applet in OS X... :-(
  • Index(es):
    • Date
    • Thread