Copy/Move Button

I've been evaluating Directory Opus for about two weeks now, and it's got just about everything that I need/want in a file manager, except one thing: a single button/menu for copying/moving things to a specific folder that I don't already have a tab open to. So I made one.

It's a simple menu that has two sub-menus, one for copying and one for moving. Each sub-menu has a button that opens a standard DOpus copy/move dialogue, as well as a sub-menu that lists your favorite places.

Please critique/suggest/praise me as you see fit.

<?xml version="1.0"?>
<button backcol="none" display="both" icon_size="large" label_pos="right" min_width="yes" separate="yes" textcol="none" type="menu">
	<label>Copy/Move to</label>
	<tip>Copy or move selected files/folders to a specified or Favorie location.</tip>
	<icon1>#copyas</icon1>
	<button backcol="none" display="both" icon_size="large" label_pos="right" min_width="yes" textcol="none" type="menu">
		<label>Copy To</label>
		<icon1>#copy</icon1>
		<function type="normal">
			<instruction>Copy TO=ask$</instruction>
		</function>
		<button backcol="none" display="both" icon_size="large" label_pos="right" textcol="none">
			<label>Copy To</label>
			<icon1>#copy</icon1>
			<function type="normal">
				<instruction>Copy TO=ask$</instruction>
			</function>
		</button>
		<button backcol="none" display="both" icon_size="large" min_width="yes" textcol="none" type="menu">
			<label>Copy To Favorites</label>
			<icon1>#favoriteslist</icon1>
			<button backcol="none" display="label" textcol="none">
				<label>Favorites</label>
				<icon1>#newbuttonmenu</icon1>
				<function type="normal">
					<instruction>Favorites COPYTO</instruction>
				</function>
			</button>
		</button>
	</button>
	<button backcol="none" display="both" icon_size="large" label_pos="right" min_width="yes" textcol="none" type="menu">
		<label>Move To</label>
		<icon1>#move</icon1>
		<function type="normal">
			<instruction>Copy MOVE TO=ask$ </instruction>
		</function>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Move To</label>
			<icon1>#move</icon1>
			<function type="normal">
				<instruction>Copy MOVE TO=ask$ </instruction>
			</function>
		</button>
		<button backcol="none" display="both" icon_size="large" label_pos="right" min_width="yes" textcol="none" type="menu">
			<label>Move To Favorites</label>
			<icon1>#favoriteslist</icon1>
			<button backcol="none" display="both" textcol="none">
				<label>Favorites</label>
				<icon1>#favorites</icon1>
				<function type="normal">
					<instruction>Favorites MOVETO</instruction>
				</function>
			</button>
		</button>
	</button>
</button>

4 Likes

You say "button/menu for copying/moving things to a specific folder that I don't already have a tab open to"

Perhaps, I don't understand your request but let me give it it a go.

First, the script is lovely but if all you want to do is copy/move something to a specified folder, then these will work:

Copy
Copy TO "Your path here with this as a sample T:\Software\Wallpaper2\BingSnap"

Move
Copy Move TO "Your path here with this as a sample T:\Software\Wallpaper2\BingSnap"

What have I missed?