Apple Application automation library using applescript (osascript)