Setting attributes of new record

Does anyone know how to do this?

I’d like to be able to select some text in a record, create a new record from that text and apply some new attributes to it.

More specifically I’m toying with a GTD setup that can

  1. copy a line from a “Project” document,
  2. create a new record by pasting the resulting clipboard,
  3. label it as a Task (using labels) and insert the comment “NextAction” which will then allow it to be collected to a"NextActions" smarfolder.

The problem is that between steps 2 AND 3, I can’t quite figure out how to automatically select/access the new record in order to apply the attributes.

Cheers,

Eiron

If you’re using the “paste clipboard” AppleScript command for step 2, then the command returns a reference to the created record.