AppleScript to select profile

A post was split to a new topic: How to open Core shell in background using AppleScript