• 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: Martin Orpen <email@hidden>
  • Date: Wed, 23 Jun 2004 15:24:09 +0100

on 23/6/04 12:28 pm, email@hidden at email@hidden wrote:

> On 23 juin 04, at 17:28, Paul Skinner wrote:
>
>> 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.
>
> sorry, i did not read the beginning of the thread but i actually had to
> radically kill the dock yesterday and this worked:
>
> in terminal:
> a 'top' to find the dock pid
> a 'grep' to get that number
> a 'kill -9' that pid to kill the dock
>
> et voila, le dock is dead !
>
> now you only have to put that in an applescript :)

Wow, what a great idea!

I've written the script for you:


repeat
set kDock to do shell script "top -l 1 | awk '/Dock/ { print $1 }'"
do shell script "kill " & kDock
delay 2
end repeat


Maybe you'd need to attach a text file with a warning to people who suffer
from epilepsy...

And a warning about productivity problems...

And find out if there is actually a limit on the PID value...

And... :-)

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.


References: 
 >Re: quit the dock - possible? (From: email@hidden)

  • Prev by Date: Re: CD drive opener -- OS 9
  • Next by Date: RE: CD drive opener -- OS 9
  • Previous by thread: Re: quit the dock - possible?
  • Next by thread: Re: quit the dock - possible?
  • Index(es):
    • Date
    • Thread