Add Custom Meta Data to Child Items
Jump to navigation
Jump to search
Add Custom Meta Data (version 1.00)
- Released March 1, 2022
[Release Announcement]
This AppleScript is written for use with DEVONthink Smart Rule to apply custom meta data of a group to the child records.
Terms of Use
Add Custom Meta Data by Robert P. Allred, PhD is licensed under a Creative Commons Attribution 4.0 International License.
You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
This license is acceptable for Free Cultural Works.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Important Links
Current Project Page: https://doctorallred.com/software/index.php?title=Add_Custom_Meta_Data_to_Child_Items
System Requirements
Only tested with macOS Catalina and DEVONthink 3.8.2
Installation
- Requires macOS and DEVONthink
- Requires that you have a custom meta data set up--"ceserialnumber" in this case.
- Create a Smart Rule to identify the relevant items
- Add this script as the action for the Smart Rule
Current Version
Version 1.0 (March 1, 2022)
on performSmartRule(theRecords)
tell application id "DNtp"
repeat with theRecord in theRecords
-- try
set theSerial to get custom meta data for "ceserialnumber" from location group of theRecord
add custom meta data theSerial for "ceserialnumber" to theRecord
-- end try
end repeat
end tell
end performSmartRule
[Download here as Zip archive]
Change requests
- n/a
Full Change Log
- 1.00 (March 1, 2022): Initial release of script