Extracting apple scripts to separate module