Re: Any Way to Make an Applet Run as a Background Application?
Re: Any Way to Make an Applet Run as a Background Application?
- Subject: Re: Any Way to Make an Applet Run as a Background Application?
- From: "S. J. Cunningham" <email@hidden>
- Date: Sat, 24 Oct 2015 13:39:15 -0400
- X_v_e_cd: 99b9684666b82a0a361015526edf02c3
- X_v_r_cd: e7a0290d71f16856123e31428cb8b0ab
On Oct 21, 2015, at 4:14 PM, Steve Mills wrote:
> On Oct 21, 2015, at 03:09 PM, Steve Mills <email@hidden> wrote:
>
>> On Oct 21, 2015, at 02:31 PM, "S. J. Cunningham" <email@hidden> wrote:
>>
>>> I have an applet that I am running periodically using launchd . Is there any way to keep it from popping in and out of the Dock every time it runs? I can't find anything in the launchd documentation that addresses this nor can I find any option to save an applet as a background process.
>>
>> Add the LSBackgroundOnly flag to the Info.plist with a value of true:
>>
>> <key>LSBackgroundOnly</key>
>> <true/>
>
> BTW, you'll have to re-add it every time you re-save the script - Script Debugger has this problem at least. I didn't try Script Editor.
>
Steve
Actually I think it's LSUIElement I want. Unfortunately that throws me back into the quandary that it can't interact with the user as in "No interaction allowed" when it tries to Display Dialog.
I have an agent app that I want launchd to run every two minutes. Normally there is no user communication but I want it to display an error message in the event. Works fine except it pops in and out of the dock every two minutes. Kind of distracting. Adding the LSUIElement keeps it out of the dock but disallows the display of error messages.
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden