Hi Dale,
thanks for that help. After putting all scripts ones after ones your's worked well - I found that i did a copy error and missed the first line.
BTW: I've edited your script a little bit to add the date of the scan (stole that at asianeffiecncy):
Thanks a lot man! To get it into the right project is quite easier as you can drag and drop a lot of tasks to a project :-)
thanks for that help. After putting all scripts ones after ones your's worked well - I found that i did a copy error and missed the first line.
BTW: I've edited your script a little bit to add the date of the scan (stole that at asianeffiecncy):
Code:
tell application "Finder" to set file_name to (name of theFile) set theDate to current date set theNote to "Scanned " & (theDate as string) & " " tell application "OmniFocus" set task_title to "Proceed: " & file_name tell default document set theContext to first flattened context where its name = "Review" set newTask to make new inbox task with properties {name:task_title, context:theContext} set note of newTask to theNote tell the note of newTask make new file attachment with properties {file name:theFile, embedded:false} end tell end tell end tell