Re: Entourage: Kill that Daemon! (Shell)
Re: Entourage: Kill that Daemon! (Shell)
- Subject: Re: Entourage: Kill that Daemon! (Shell)
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 13 Nov 2002 09:43:44 -0800
On 11/13/02 7:54 AM, "Gnarlodious" <email@hidden> wrote:
>
Entity Axel Luttgens spoke thus:
>
>
> Now, as Paul wrote, there is a much easier way to do this:
>
> tell application "Finder" to quit application "Microsoft Database Daemon"
>
>
That is a good idea and it quits the Daemon but only as an "Application".
>
Entourage's Script Menu doesn't show Applications,
>
only Compiled Scripts! (More Office X aggravations)
What are you talking about, Rachel? Entourage's Script Menu is not a place
to put applications of any sort. But you can certainly _call_ applications
from any compiled script that you place in the scripts folder. You're not
required to 'tell application "Microsoft Entourage" 100% of the time. You
can certainly certainly tell the daemon to quit from a script running in
Entourage.
But then Entourage itself would be open by definition! Surely you're not
trying to rebuild Entourage's database with Entourage itself open? How would
you even attempt to do that? Why don't you make a _compiled script_ of the
new Data Fork sort (i.e. "Compiled Script" with upper case letters in Script
Editor 1.9) that says:
tell application "Finder" to quit application "Microsoft Database
Daemon"
Put this script in Jaguar's own Script menu. (If you haven't tried that yet,
go to /Applications/AppleScript/ and double-click Script Menu.menu there. It
puts a Script menu with a black Script icon on the right side of your menu
bar - no matter what app you're in its available.) You can select "Open
Scripts Folder" at the bottom of the menu. that gets you to
~/Library/Scripts. put it there. that's actually what I've done myself. Any
time I need to, I just select "Close Daemon" from that menu, and it's done.
(But I hope you're not planning to rebuild your database on a regular weekly
basis or something. That's not a good thing t do - too much unnecessary disk
rewriting is not good for your hard disk. Just do it when something's wrong
with the database. Don't do it for "housekeeping" when you delete messages:
there's no need to compact the database. new messages will simply occupy the
old space. this is much better for your disk and for Entourage. Only if you
desperately need the disk space should you rebuild the database to gain more
space - or if you absent-mindedly allowed the DB to get to 3 GB or so, I
suppose.)
>
>
So, back to the Shell, which (I hope) will run as a compiled script:
>
do shell script ,
>
("kill -9 " & "/bin/ps -auwx | grep -v /usr/bin/awk | /usr/bin/awk
>
'/Microsoft Database Daemon/ {print $2;}'")
>
>
This seems to run but according to Process Viewer it doesn't quit the
>
Daemon.
>
Is that line OK? I don't understand this shell scripting!
You really don't need this this time. Where exactly were you thinking of
storing this script anyway?
--
Paul Berkowitz
_______________________________________________
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.