catch (ex) {
if (ex.noFolderFound) {
var details = "Finder can display some things that look like folders, but for which there is no actual on-disk folder; "
details += "since there's no actual \"" + ex.message + "\" folder, it can't be opened in iTerm.\n"
var reply = displayAlert("Can't open folder in iTerm", details, [ "Cancel", "Open iTerm Anyway" ])
if (reply.buttonReturned == "Cancel") return
}