alfredclough 13 Posted November 11, 2013 This workflow allows you to enter a new event via Alfred using Calendar's quick entry box syntax. Type whatever you would enter in the quick entry box in Calendar in Alfred after the newevent keyword and hit enter. The workflow will pass what you type to Calendar through the Quick entry box allowing Calendar to automatically create the event. Click here to download the workflow. 2 claui and gr8 reacted to this Quote Share this post Link to post
mgonto 0 Posted February 10, 2014 This workflow allows you to enter a new event via Alfred using Calendar's quick entry box syntax. Type whatever you would enter in the quick entry box in Calendar in Alfred after the newevent keyword and hit enter. The workflow will pass what you type to Calendar through the Quick entry box allowing Calendar to automatically create the event. Click here to download the workflow. Hi Thanks for the great Workflow. However, I'm having a problem. The calendar text is considered without spaces and therefore not created correctly. "cal do this tomorrow at 3pm" creates an event for now called "dothistomorrowat3pm" Any clues? Thanks! Quote Share this post Link to post
alfredclough 13 Posted February 11, 2014 Hi Thanks for the great Workflow. However, I'm having a problem. The calendar text is considered without spaces and therefore not created correctly. "cal do this tomorrow at 3pm" creates an event for now called "dothistomorrowat3pm" Any clues? Thanks! I'm not having any problem and I've tried it repeatedly. The problem may be that it looks like you are using "cal" as a keyword. This extension is triggered by the keyword "newevent". If you are trying to passing something directly to the Calendar application then maybe that's what's causing the problem. Quote Share this post Link to post
nemrod 3 Posted February 13, 2014 Waow ! It works great ! Thanks a lot Quote Share this post Link to post
mgonto 0 Posted February 14, 2014 I'm not having any problem and I've tried it repeatedly. The problem may be that it looks like you are using "cal" as a keyword. This extension is triggered by the keyword "newevent". If you are trying to passing something directly to the Calendar application then maybe that's what's causing the problem. Hey, I actually changed that to cal, but all the words are together. I switched to doing actually a Cmd + C of the {query} and then Cmd + V in the Quick entry field and it works now. No idea why it didn't but this may help another one who can't get it to work. ANyway, thanks for your awesome work Quote Share this post Link to post
bmscmoreira 1 Posted July 15, 2014 Thanks for the workflow! But I am having problems with accentuation (for example, passing "João" results in "Joaao"). Is it easy to fix? Thanks! Quote Share this post Link to post
alfredclough 13 Posted July 22, 2014 I'm not sure how to accommodate that, it's simply an Applescript that feeds what you enter to Calendar. Perhaps someone with programming skills could determine why it's interpreting what you enter incorrectly. Quote Share this post Link to post
ManicDee 1 Posted September 23, 2014 (edited) To allow Unicode characters: set the clipboard to "{query}" as text tell application "Calendar" to activate tell application "System Events" keystroke "n" using {command down} keystroke "v" using {command down} keystroke return end tell Note that we're side-stepping the text entry by simply pasting the Unicode string into the field that is already selected. Edited September 23, 2014 by ManicDee 1 claui reacted to this Quote Share this post Link to post
bmscmoreira 1 Posted November 14, 2014 Thank you ManicDee. Works great. But, at least for me, was not working if the Calendar app was not opened. Duplicating the "activate" line solves the problem. Full code I am using is: tell application "Calendar" to activate set the clipboard to "{query}" as text tell application "Calendar" to activate tell application "System Events" keystroke "n" using {command down} keystroke "v" using {command down} keystroke return end tell Thanks again! 1 claui reacted to this Quote Share this post Link to post
claui 2 Posted December 23, 2014 To allow Unicode characters: […] But, at least for me, was not working if the Calendar app was not opened. Duplicating the "activate" line solves the problem. For me, it only seems to work when I give Calendar a bit of time to get ready, e. g. when I insert a delay like this: set the clipboard to "{query}" as text tell application "Calendar" to activate delay 0.5 tell application "System Events" keystroke "n" using {command down} keystroke "v" using {command down} keystroke return end tell 1 paulw reacted to this Quote Share this post Link to post