Text this: Smart molecular crystal switches