Create a new Reminder in Mountain Lion

Sharing and discussing custom actions for LaunchBar
keitofu
Posts: 18
Joined: Tue Dec 01, 2009 10:03 am

Re: Create a new Reminder in Mountain Lion

Post by keitofu » Mon Jan 28, 2013 8:54 am

I did it :

buy milk @today 9am -> no reminder created
buy milk @9am -> no reminder created
buy milk @today 9 -> reminder for september, 1st at 00h00


edit : taking a look at the console, if I input : >buy milk @today 9am
I have the following message :

28/01/13 15:43:34,022 LaunchBar[40938]: NSAppleScript Error -1700: Il est impossible de rendre "9am" en type integer. (Range: 0, 0)

(impossible to convert 9am to integer)

Hope that helps

sabdal
Rank 1
Rank 1
Posts: 33
Joined: Wed Jun 18, 2008 4:49 pm

Re: Create a new Reminder in Mountain Lion

Post by sabdal » Tue Feb 05, 2013 6:39 pm

2/5/13 11:34:05.352 AM LaunchBar[244]: NSAppleScript Error -1700: Can’t make item 2 of {"4pm"} into type integer. (Range: 0, 0)

From Console. It seems there has to be a space between 4 and pm:

@4 pm instead of @4pm.

keitofu
Posts: 18
Joined: Tue Dec 01, 2009 10:03 am

Re: Create a new Reminder in Mountain Lion

Post by keitofu » Tue Feb 05, 2013 6:54 pm

with the space :

05/02/13 17:53:10,916 LaunchBar[40938]: NSAppleScript Error -1700: Il est impossible de rendre "am" en type integer. (Range: 0, 0)

(can't make "am" into type integer)

sabdal
Rank 1
Rank 1
Posts: 33
Joined: Wed Jun 18, 2008 4:49 pm

Re: Create a new Reminder in Mountain Lion

Post by sabdal » Mon Feb 11, 2013 5:57 pm

@jayphen, thanks for a great script.

https://gist.github.com/Jayphen/3187630

I went back and downloaded the lastest version. Works great. My only request would be to have Growl or some other "error" message so we know when reminders didn't actually get created because of a typo or bad syntax? Thanks!

Post Reply