Power users can take this idea even further using a tool like Hazel. Then just choose the desired label, and click the Save button to add the Saved Search to your sidebar. Choose Other from the left hand drop-down menu, and choose File label from the list. To set up the saved search, start by switching over to the Finder and choosing Find from the File menu (or type Command-F). Instead of duplicating all your receipts into a separate “receipts” folder, you can just use labels along with a Saved Search that displays all the files with that label. But sometimes, for example, you might want to see all your receipts from all your different projects together, or all the files that you need to print. Most people will have their documents organised into separate folders for each project, and will have separate folders for work and home files. Using labels as tags can work really well in conjunction with Saved Searches (also known as Smart Folders). Once you have done this, the only limitation compared to a real tagging system is that you are restricted to only having 7 different tags. If you want to use labels a bit more like tags, it is possible to choose a custom name for each label colour in the Finder Preferences (under Finder in the menubar). Alternatively, you can select the icon by clicking on it, and choose the label from the File menu in the menubar. Just right-click the icon and choose one of the coloured squares from the menu. Until OS X Mavericks is released later this year, they are a pretty good substitute for having a proper way to tag files in the Finder.Īdding a label to a file or folder is simple. Labels are a handy way to organise your files in the Finder by colour-coding their icons. Now, when you return to Mail, your script should be available in the drop down menu next to “Run AppleScript”. Give the script a memorable name and save it. In the text field, type ~/Library/Application Scripts/ and press Return. Choose Save from the File menu, and then press Command- Shift- G to bring up the Go to folder dialog. Now all we need to do is save the AppleScript somewhere Mail can see it. Setting the url of the event to the email message id also provides a handy link back to the original email message from within Calendar. I set the location of the event to the screen number and the cinema address, and I add a few details to the event notes like my booking reference number. Above, I set the name of the even to the title of the movie and I calculate the end time by adding the running time of the movie to the start time. You will also need to modify this to match the exact details in your email messages. Set url of theEvent to "message://" & "%3c" & msgid & "%3e" Set description of theEvent to "Booking Reference: " & bref & return & "Run Time: " & runtime & " minutes" & return & "Certificate: " & cert Set location of theEvent to screen & ", Cineword " & addr On perform mail action with messages msgs for rule theRule In the script window that appears, paste the following script: - Triggered by Mail rule. This is located in the Utilities folder in the Applications folder, or you can find it using Spotlight search or Launchpad. When you first choose Run AppleScript from the drop down menu, there will not be any AppleScripts available for you to run. It is a custom AppleScript that reads the email, figures out the name, date, time and location, then creates a Calendar event. The final action is the most complicated. First the message is moved out of my inbox into another mailbox, and it is marked as read. When an email that meets these criteria is received, a series of actions are performed. In my case, I restrict the rule to only messages from in my “iCloud” account. The first section shows the conditions required to apply the rule to a message. Create a new rule, and adjust the drop down menus to look like the screenshot below. In Mail app, choose Preferences from the Mail menu, and click on the Rules tab. Let’s set up a Rule to process these emails automatically. I regularly receive booking confirmation emails from my local cinema that look like this:Īll the information to create a Calendar event is there in the text, but it is annoyingly time consuming to do this manually. To illustrate how to do this, I’m going to use an example that I’ve set up for myself. Here’s how you can set up a custom rule in Mail app that runs a short AppleScript to create a new event in Calendar app. This is exactly the sort of task that can be easily automated to save you a little bit of time and effort every day. The other day, I realised that I spend a lot of time manually creating Calendar events by copying information from booking confirmation emails. I’m always looking for ways to automate the most repetitive tasks I find myself doing on my Mac.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |