AppleScript code for cisimple