I am having problems figuring out how to duplicate a folder…

I understand how to do it if I know the location(ie. duplicate folder “foldertomove” of folder “whatever” of folder “whatever2” to folder “someplaceelse”.)

But what if the folder I am moving from changes depending upon where the person drags the folder in from?(the person drags a folder onto the program and it makes a temporary copy on the desktop)

I have the folders location in the format “Mac HD:whatever:whatever2:foldertomove”, but the duplicate uses the odd “of folder” location format.

I cant use the “move” because I need to save the original folder.

any thoughts/help/suggetions?



If you save this as an application, it will become a droplet. Does it address your need?

on open dropped_items
	tell application "Finder"
		repeat with item_ in dropped_items
			duplicate item_ to desktop without replacing
		end repeat
	end tell
end open

Ah ha!

That does indeed answer my question, thanks!


Actually, the repeat loop is not needed and I don’t know why I always want to do it that way. This works for me and it might be quicker.

on open dropped_items
	tell application "Finder" to ¬
		duplicate dropped_items to desktop without replacing
end open