You're absolutely correct, and I don't know why that code is in there because it doesn't work. I just copied it all over and posted it in here to let you know what's in the button code. Funny thing is that this code -

on (release) {
FSCommand("exec","jcommand_3Aminimize");
}

is in the minimize button of the previous version of this project and it works when executed. I don't understand why it's not working now. I didn't change anything in the code. Makes no sense...