Can you post a screenie of the message? I am a mac user as well, I might be able to help you out
EDIT : if you are new to macs : use CMD + SHIFT + 4 to take a screenshot
Forgive me if I'm wrong, but it checks if you reached a certain goal (see example, 99 attack), and when that goal is reached, you can paste your own code in the onGoalReached method's body to do something
You are probably referring to OSBot scripts, so you're in the wrong section!
This will help you out : http://osbot.org/forum/forum/157-projects/
EDIT : You can PM the persons who made the YT vids on that section, they will probably help you out!