So I assume that it is not helpful to create the video? Does it seem that in Directory Opus, what I would like to have is not possible? Is it somehow possible that the rename is automatically applied to the file after the drop has succeeded?
The video might be useful to see exactly what is happening.
What you want may be possible via scripting. But simply dropping the files and then clicking a button or hotkey to rename them would be a lot easier, and only one extra click.
Any follow up on this?
I am having a difficult time saving and organizing the amount of emails and correspondence i deal with and hoped that dopus could help ease the burden. rename the file with the date who its from and the subject and i can bucketize till i need to recall windows
Opus 13 can execute commands regularly or respond to file or folder changes.
Understood, with your experience and knowledge what would the steps be to work towards implementing. I struggled with scripting this last evening and I could probably work thru it if I knew metadata needs read first then it could run a script to re-label. i don't quite understand the process to implement a overview or guide so to say would be ideal till familiar with the approach
And I thank you and anyone in advance for taking anytime from your day to help me work thru this
This add-in establishes the basic functionality. It creates two commands to start and stop the monitoring: WatchOutlookMsgStart and WatchOutlookMsgStop.
You need to adjust the folder to be monitored and the commands to execute.
Save CommandWatchOutlookMsg.js.txt to ↓
%appdata%\GPSoftware\Directory Opus\Script AddIns
How to use buttons and scripts from this forum
JScript
function OnInit(initData) {
initData.name = 'WatchOutlookMsg';
initData.version = '2024-11-20';
initData.url = 'https://resource.dopus.com/t/rename-using-metadata-from-outlook-msg-files/39930/27';
initData.desc = 'WatchOutlookMsg';
initData.default_enable = true;
initData.min_version = '13.0';
}
function OnAddCommands(addCmdData) {
var cmd = addCmdData.AddCommand();
cmd.name = 'WatchOutlookMsgStart';
cmd.method = 'OnWatchOutlookMsgStart';
cmd.desc = 'WatchOutlookMsgStart';
cmd.label = 'WatchOutlookMsgStart';
cmd.template = '';
cmd.hide = false;
cmd.icon = 'script';
var cmd = addCmdData.AddCommand();
cmd.name = 'WatchOutlookMsgStop';
cmd.method = 'OnWatchOutlookMsgStop';
cmd.desc = 'WatchOutlookMsgStop';
cmd.label = 'WatchOutlookMsgStop';
cmd.template = '';
cmd.hide = false;
cmd.icon = 'script';
}
var fsu = DOpus.FSUtil();
var itemID = 'RenameOutlookMsg';
function OnWatchOutlookMsgStart(scriptCmdData) {
var item = fsu.GetItem(fsu.Resolve('D:\\MyOutlookMsgInboxFolder'));
fsu.WatchChanges(itemID, item, 'f'); // monitor for file change in folder (e.g. file created)
DOpus.Output('Started monitoring');
}
function OnWatchOutlookMsgStop(scriptCmdData) {
fsu.CancelWatchChanges(itemID);
DOpus.Output('Stopped monitoring');
}
function OnFilesystemChange(FilesystemChangeData) {
if (FilesystemChangeData.id != itemID) return;
// Note that you aren't told what changed, only that something meeting the specified conditions did change.
DOpus.Output('Action!');
var cmd = DOpus.Create().Command();
var cmdLine = 'Rename PRESET=Email';
DOpus.Output(cmdLine);
// cmd.RunCommand(cmdLine);
}
Thank you I will work on it