[OSX] Script to run when machine wakes up

Andrew J. Brehm wrote on :
Is it possible to let the machine run a script when it wakes up?