Can someone explain how to, in one button, create a new folder then set the description for that folder. I was having trouble with the timing of the commands. Every effort i did set the description of the first selected file THEN created a folder. DH
Post you code here in a codebox so I can see it, then I'll post a little trick I've learned that might help.
I tried: CreateFolder
SetSttr DESCRIPTION
andCreateFolder
Select NEXT
SetSttr DESCRIPTION
and
snyc:dopusrt /cmd CreateFolder
sync:dopusrt /cmd SetSttr DESCRIPTION
and
snyc:dopusrt /cmd CreateFolder
Select NEXT
sync:dopusrt /cmd SetSttr DESCRIPTION
Maybe SetAttr might give you better results.
Funny! Yes indeed i used setAttr---i retyped the code with obvious typo, but no it doesnt work the way i want:
CreateFolder
SetAttr DESCRIPTION
or
CreateFolder
Select NEXT
SetAttr DESCRIPTION
and then the same but using
snyc:dopusrt /cmd ...
DH
This button works okay, but there is a downside. If the specified folder name already exists, Opus will not display a warning, nor will it auto-rename the folder. The Set Description dialog will also open for the pre-existing folder of the same name.
<?xml version="1.0"?>
<button display="both" effect="saturate">
<guid>{12B42E26-672B-46BE-85AB-47B989A76B9C}</guid>
<label>New Folder+Description</label>
<tip>Creates a new empty folder and immediately prompt to set its Description.</tip>
<icon1>183</icon1>
<function type="normal">
<instruction>sync: dopusrt /cmd CreateFolder READAUTO=no NOUPDATESETTINGS NAME={dlgstring|Enter the folder name you want to create|}</instruction>
<instruction>sync: dopusrt /cmd SetAttr DESCRIPTION </instruction>
</function>
</button>
To get the above button to your Opus configuration:[ol][li] Copy the button code above to your clipboard. [/li]
[li] Right-click any Opus toolbar and select Customize. [/li]
[li] Right-click on the desired toolbar/menu to add the button to, and select Paste.[/li][/ol]
Nice! Thank you for that. DH