The result is always "Can't delete that file."
I tried "close file" first, but the result is "file is already closed."
Code: Select all
on mouseUp
if there is not a player 1 then
answer "I can't find that player."
exit mouseup
end if
put "delete file" && quote & the filename of player 1 & quote into tempVar
Answer "Are you sure you want to delete" && the filename of player 1 && "?" with "Yes" or "No"
if it is not "yes" then exit mouseUp
do tempVar
end mouseUp
Thanks,
Tim