I’ve been trying to create an applescript to move one or more selected records (in the Inbox, say) into a particular group/folder (‘Receipts’).
I can’t really get anything to work. I’ve looked through the example scripts, but they haven’t helped.
Attempt included:
set theGroup to (the record whose name is “Receipts”)
move this_item to theGroup
Should I be using the ID? I’m not getting any error messages fed back either, so I’m a bit lost. Can anyone help out?
Christopher,
the “Move To Done” example script (see folder “Examples” in scripts folder of disk image) should be a good start:
– Move to Done
– Created by Christian Grunenberg on Mar Sat 15 2005.
– Copyright © 2005. All rights reserved.
tell application "DEVONthink Pro"
try
set theDatabase to current database
set theContents to contents of theDatabase
set theGroup to create location "/Done"
-- set theGroup to parent named "Done" of theDatabase
repeat with theContent in theContents
if state of theContent is true and state visibility of theContent is true then move record theContent to theGroup
end repeat
end try
end tell