Scripts for saving and opening attachments in the background