Thank you. A slightly modified version of that worked. I needed to send two .enters, one to terminate path entry and the other to close the open dialog.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: