I have an AppleScript that no longer works under Panther. I found on the 'net a couple years ago, but I don't know where I got it.
Anyway, all it does is to restart the SystemUIServer. Launching it under Panther gives me this AppleScript error:
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
Now here's the actual AppleScript code. It should be easy to fix, but I have no AppleScript coding abilities. If somone here could tell me how to correct the syntax so it works, I'd greatly appreciate it.
on run
set output to do shell script "ps -cx | grep SystemUIServer"
set savedDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" "}
set pid to first text item of output
if pid is "" then
set pid to second text item of output
end if
set AppleScript's text item delimiters to savedDelimiters
do shell script "kill " & pid
end run