An alternative method is to invoke the alias for a text file with @RunType, but I get the same window manager error.
Click here to return to Open With Command Line