For example, I would like to do this: windowTitle = "$TM_DISPLAYNAME – ${TM_DIRECTORY/$TM_PROJECT_DIRECTORY//g}" where the string in TM_PROJECT_DIRECTORY is being removed from the string in TM_DIRECTORY Thanks! Michael Johnston lastobelus at mac.com