View Single Post
A problem with what you have there is that you're trying to set the name of the parent task of an item in the Inbox, and there is no parent task (because it is in the Inbox), and you can't set the name of a non-existent task...

If you ran the script as written on a task that was not a top-level task (in other words, was a task inside a project in the library), you would rename the action group or project that contained the task, but not assign the task to the desired destination.

I believe you need to actually find the destination project by iterating through all of the contents of the library looking for a matching name, then set the parent task of the task in the Inbox to be that destination project, then do a clean up (compact). Regretfully, I can't think of a good example to copy...