I’ve got a set of folders that I use for clipping & filing articles and documents within my global Inbox. I’m wondering how users would advise me to “Move” files from the Global Inbox folder to my database groups.
It seems easiest to do do this through some Smart Rule set up, but there might be an easier way (and one that doesn’t involve setting up Smart Rule for each Inbox folder “Move”).
I use an applescript to automate the Inbox>DB move
A single smart rule could trigger the script
My practice is a flat inbox, with no subfolders
Periodically, I use my script to help process the inbox entries; assigning name, tags, … and moving to DB
If you use a smart rule, the “Search In” condition could be made the top level of the global inbox. Then, you wouldn’t need a separate rule for each folder inside your inbox.
Thanks very much. I should clarify my set up and process a bit more…
Basically, I have two main groups in my Global Inbox: Articles & Documents (for official documents). If I were a zoologist, the groups and subgroups would break down like this…
Articles
Antelopes
Gorillas
Whales
Documents
Antelopes
Gorillas
Whales
On the other hand, I’ve also got project-specific groups in my databases, i.e., project-groups like Antelopes , Gorillas and Whales.
These project-specific groups contain the following folder (group) structure…
GORILLAS
1. Interviews
2. Media (photos / videos)
3. Articles
-RAW
-ANNOTATED
4. Documents
-RAW
-ANNOTATED
5. Administrative
It’s obviously quicker and easier to clip articles within the Global Inbox’s subject-based Articles & Documents – rather than navigating to project-specific groups->3. Articles->RAW groups.
So, with that background, I’m wondering how best to Move files from Global Inbox’s subject-based groups (Articles & Documents) to the Articles & Documents groups within the project-specific groups. Hope that makes sense! And thanks in advance for your help and input…
After setting the variables, the script executes this code
tell application id "DNtp" ------------------------------------------------------------- Update Note; Group, Title, Subject Date, DueDate , Tags ...
set theNote to move record theNote to theFilingGroup
set name of theNote to theTitle
set tags of theNote to tags of theNote & theTagList
set locking of theNote to true
if setDueDate then add custom meta data theCalendarDate for "taskdate" to theNote
set label of theNote to taskLabel
set comment of theNote to comment of theNote & reference URL of theNote
end tell
Thanks very much for sharing this! I confess I’m not great with scripts (I just don’t know much about how to assemble them, and lack much coding knowledge), so apologies in advance for my ignorant questions. Quickly…
-What are variables need to be set? Are they variables within the DTP Inbox / group(s) set-up? For the script? Both?
-After adjusting the script to match the DTP groups (and/or Tags), does one compile & save the changes in AppleScript?
-And then, I assume you just attach the script to the group(s), is that right?
Thank you!
BTW, I’m curious about how (or why) you use this if you’ve got a “a flat inbox, with no subfolders”…
You can view many examples of scripts by clicking the scripts icon in the top menu bar
We use app Script Editor to edit the script
I created folder -My Scripts and store my scripts there
Are they variables within the DTP Inbox / group(s) set-up? For the script? Both?
The variables are defined within the script
For example theTitle is a variable,
which I set to yyyy-mm-dd type [details] keywords
All DTP records/groups have columns such as name, tags, label…
these are defined in the DTP Script dictionary
Thank you very much for this explanation and breakdown! It’s very helpful… So, in order for this to work does one need to change or refer to a file’s element (name, tag, etc.) in order for it to move from one DTP to another?
I thought there were trigger scripts that could simply move all files, regardless.
In my example I coded a variable (theNote) that references the record being moved
Since I trigger the script manually, I coded - set theNote to get selected
If the script is triggered by a DT Smart Rule, the rule sets the variable automatically
I think I follow you. Are you first titling files and then applying tags to them before moving? I think I’m giving up on tags in DTP, but I’m curious how / why you use them.
I use the Inbox for Collection
I use a script to assist with Processing
Yes, Processing involves title, tags, and moving the record to the DB
The script assistes/ensures that the titles are all standard, for example prefixed with the date (yyyy-dd-mm)
The script also assists with tag assignment
All my records have a type tag; for example Receipt
Receipt records also have tags for Vendor and Budget-Category
Tagnames are also appended to the Title
Here’s an example of a receipt record title
2021-05-27 Receipt [Lunch] zTypeReceipt zVendorTimHortons zBudgetFoodDining $-2.09