• 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: Dock icon when running AppleScript in auxiliary executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Dock icon when running AppleScript in auxiliary executable


  • Subject: RE: Dock icon when running AppleScript in auxiliary executable
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 11 Aug 2008 14:58:16 +0100

Hello List

I had some dim memories of reading a blog posting of a similar problem but could not recall the details.
Then the phrase "hitting the window server" came back to me. A bit of googling on this then did the trick.

It turns out that, under Leopard, if a foundation tool resides within a bundle's /Contents/MacOS folder and that tool executes an AppleScript then the window server, for some reason, generates a dock icon for it. The solution is to move the tool out of /Contents/MacOS and into  /Contents/Resources.

The original blog post is here:Noodlings » Adventures in Debugging: Pref Pane Poppin’ Aplenty

Jonathan



Hello List

My app has the following structure:

1. A cocoa client GUI.
2. A foundation tool daemon.
3. A worker task.

The foundation daemon is normally launched by the client GUI.
The daemon subsequently generates a number of worker tasks.
The worker tasks execute AppleScripts using the OSA (essentially each task acts as a wrapper process for an AppleScript).
The daemon and the worker task both reside in the client's main bundle.

At present each worker task produces an icon in the dock whenever it runs an AppleScript. 
This is something I would wish to optionally prevent.

Why it does this is something that I I don't fully (or even partially) understand.
The icon seems to appear whenever the OSA componentInstance is allocated.

When calling OSAExecute I pass kOSAModeNeverInteract.
In general the executed AppleScripts do not require user interaction.

I know that LSBackGroundOnly and LSUIElement can be placed into the application info.plist but that won't help me in this case (I think).

Thanks

Jonathan
 _______________________________________________
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

  • Follow-Ups:
    • Re: Dock icon when running AppleScript in auxiliary executable
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Safari's clipboard
  • Next by Date: Re: OOP AppleScript and self-initialization
  • Previous by thread: Dock icon when running AppleScript in auxiliary executable
  • Next by thread: Re: Dock icon when running AppleScript in auxiliary executable
  • Index(es):
    • Date
    • Thread