This is a modified script which is setup correctly to be used inside the app Hazel.