Notice update
Instead of using NSApplescript im working directly with the cocoa API.