"Dave Bauer" <[EMAIL PROTECTED]> writes:

> Here is my crazy idea. I'd like to be able to execute a script that
> will add a task to a certain page.
>
> So I would type someting like
> planner-create-task.sh "Task Description" "2007-06-19" "Page"
> And this would magically work :)
> So I'd like to probably run emacs in server mode then connect with an
> emacsclient and execute that script which would add the task and
> update any task pages I have open that are affected.
>
> What I need to know is if this is possible :)

Did you get this working? It should be possible, using emacslient and
having it call planner-create-task.

Something along the lines of:

emacsclient -e \(planner-create-task "Task Description" "2007.06.19" nil
"Page"\)

If you're doing this from a shell script then you can use shell
variables inside the lisp expression I believe:

emacsclient -e "(planner-create-task \"$1\" \"$2\" nil \"$3\")" 

-- 
John Sullivan
Emacs Planner Maintainer
http://www.wjsullivan.net/PlannerMode.html
GPG Key: AE8600B6

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to