Title: Re: Script Menu (was: Re: Compacting Entourage Databases)
On 7/6/02 1:50 PM, Jan Martel deftly typed out:
>> Yes. Once upon a time, you had to add ".scpt" to the end of their names for
>> them to show up. Perhaps that's still true. (They don't show the .scpt
>> extension in the menu.)
>
> Applescript obviously knows to behave perfectly once the two of you speak
> :-). Now it's showing up whether it's in "my" scripts folder or the other
> one. It doesn't have .scpt after it (in the folder, not the menu), so that
> must not be necessary. I have no idea what I did wrong the first time to
> make it not show up. Thank you both!
The menu has to refresh to list the newly added scripts. I'm not sure whether that happens at log-out, sleep, or periodically during system use, but one of the contributed shell scripts for the menu is called "Restart Menu" that quits the process that draws the menu and restarts it, thereby giving you a fresh listing. You can download the shell script from Apple's OS X scripting site (<http://www.apple.com/applescript/macosx> I believe), or just copy the following text to your text editor of choice, make sure it has Unix line endings, save, make it executable ("chmod a+x Restart\ Menu") and place it in your scripts folder. Here's the script’s code:
#!/bin/csh
kill -HUP `ps -auxww | grep SystemUI | grep -v grep | grep $LOGNAME | awk '{print $2}'`
Enjoy!
-Remo Del Bello
--
Cyber bumper sticker:
Atheism is a non-prophet organization.
- Script Menu (was: Re: Compacting Entourage Databases) Jan Martel
- Re: Script Menu (was: Re: Compacting Entourage Databas... Paul Berkowitz
- Re: Script Menu (was: Re: Compacting Entourage Dat... Allen Watson
- Re: Script Menu (was: Re: Compacting Entourage... Paul Berkowitz
- Re: Script Menu (was: Re: Compacting Entou... Jan Martel
- Remo Del Bello
