bwanamatt Posted January 22, 2013 Share Posted January 22, 2013 I'm trying to adapt this extension to Alfred v2: http://jdfwarrior.tumblr.com/post/28062338466/creating-reminders-in-the-mountain-lion-reminders First, I added a Keyword input. - with space is checked - argument required is selected Then I added a Run Script action that looks like the following: I also moved the reminder.scpt file to the workflow folder. When I run the workflow, it will successfully create the reminder in Reminders.app, but it always sets the time as 12/31/69 6pm. Any ideas? I'm not sure why this is behaving differently than the v1 version. Thanks! Link to comment
bwanamatt Posted January 22, 2013 Author Share Posted January 22, 2013 And here's the workflow as is if anyone wants to play around with what I have so far. http://d.pr/f/EG78 Link to comment
jdfwarrior Posted January 23, 2013 Share Posted January 23, 2013 I haven't toyed with it but its going to be in the WHEN section obviously. I would guess within the first 3 lines or the 4th line. Probably not setting the timezone appropriately or getting an error in the strtotime and then therefore causing problems when trying to get the date() and then it just returns the initial epoch time. I would suggest taking the code in the WHEN section and putting it in a php file alone, add a few echoes to see values as it progresses. Then you can find exactly where it's dying. There may be an easier way to get the timezone (I'm sure there probably is. I think I've seen it in a plist, I just have to remember which one). Link to comment
bwanamatt Posted January 23, 2013 Author Share Posted January 23, 2013 (edited) Thanks! Looks like the fix is as simple as adding stripslashes in front of $argv[1]. I've updated the workflow to include the change and your info as creator. http://d.pr/f/Hou9 EDIT: use this one http://d.pr/f/zYnx Edited January 23, 2013 by bwanamatt Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now