• 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: quit the dock - possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quit the dock - possible?


  • Subject: Re: quit the dock - possible?
  • From: Graff <email@hidden>
  • Date: Tue, 22 Jun 2004 22:08:40 -0400

On Jun 22, 2004, at 7:08 PM, Walter Ian Kaye wrote:

At 10:24a -0400 06/21/2004, Paul Skinner didst inscribe upon an electronic papyrus:

set p to (path to startup disk as text) & "System:Library:CoreServices:Dock.app:"

Or...

tell app "Finder" to set p to application file id "dock" as string

Could use "com.apple.dock" instead of "dock" if you're paranoid.


on idle
return 60
end idle

Whassat accomplish?

I believe that what this is doing is creating an application with the same name as the Dock, running it, and then quitting the real Dock. Then it stays open forever so that when whenever the system checks to see if the Dock is still running the system will see the fake Dock application and it won't launch the real one.

It's clever. It relies on the fact that apparently Mac OS X checks to see if the Dock is running by name rather than by process id and that it doesn't check to make sure that the Dock it finds is the true Dock.


So the blank idle loop is just there to keep the stay-open applet open. Every 60 seconds the idle loop is activated, does nothing , and then sleeps for 60 more seconds. It probably uses next to no CPU or memory.

- Ken
_______________________________________________
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: quit the dock - possible?
      • From: Walter Ian Kaye <email@hidden>
References: 
 >quit the dock - possible? (From: Armin Egginger <email@hidden>)
 >Re: quit the dock - possible? (From: Paul Skinner <email@hidden>)
 >Re: quit the dock - possible? (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: copy full filepath name
  • Next by Date: Re: quit the dock - possible?
  • Previous by thread: Re: quit the dock - possible?
  • Next by thread: Re: quit the dock - possible?
  • Index(es):
    • Date
    • Thread