Re: quit the dock - possible?
Re: quit the dock - possible?
- Subject: Re: quit the dock - possible?
- From: Paul Skinner <email@hidden>
- Date: Wed, 23 Jun 2004 04:28:16 -0400
I failed to mention that this script needs to be a stay open app. If
not, as soon as the OS notices that 'Dock.app' isn't running it will
relaunch the original Dock. The idle is set to an increment intended to
reduce the app's load on the system.
The default ide-return value for a stay-open app is 1 second IIRC.
On Jun 22, 2004, at 10:08 PM, Graff wrote:
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.
To be precise, it relies on the fact that the OS doesn't check the
path of the Dock.app that's running, so it works without having to muck
around in the system folder replacing core services.
Paul
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?
_______________________________________________
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.