add applescript activate mode