ever since I installed Tiger, this script crashes!

Does anyone have any idea why this crashes tiger?
-patrick

set shortname to do shell script “whoami”

– get the administrator password
set x to display dialog "Enter the administrator password for " & shortname default answer “”
set jagpass to text returned of x

set shellscript to “sudo rm -R /TheVolumeSettingsFolder/HFSExtentTables/*”
my sudoshell(shellscript, jagpass)

set shellscript to “sudo rm /Desktop”
my sudoshell(shellscript, jagpass)

set shellscript to “sudo rm /Desktop\ DB”
my sudoshell(shellscript, jagpass)

set shellscript to “sudo rm /Desktop\ DF”
my sudoshell(shellscript, jagpass)

display dialog (shortname & " the files have been cleared. Please Log Out. When you log back in the ilok trial period will be reset") ¬
buttons {“Ok”} default button 1

on sudoshell(cli, pswd)
display dialog cli
try
do shell script cli password pswd with administrator privileges
on error the error_message number the error_number
beep
display dialog "Error: " & the error_number & ". " & the error_message buttons {“OK”} default button 1
end try
end sudoshell

From Technical Note TN2065:

I am also very interested in getting this script to work…

When you say “simply remove” sudo(8) could you clarify that? Do you mean to remove the line of code that contains it or just the ‘sudo’ part or something else…

taking

this:
set shellscript to “sudo rm /Desktop\ DF”
my sudoshell(shellscript, jagpass)

and this:
on sudoshell(cli, pswd)
display dialog cli

as possible examples… thank you for your help…

The call to the sudo executable, e.g.:

set shellscript to "rm -R /TheVolumeSettingsFolder/HFSExtentTables/*"
my sudoshell(shellscript, jagpass)

set shellscript to "rm /Desktop"
my sudoshell(shellscript, jagpass)

Hi,
i managed to get some script with similar values…
pls lemme know if you got one which actually resets the ilok for waves 5 in tiger !

thanks

LOL…

I thought I recognized a couple specific commands in there :wink: