Where a dropped file came from

When you drop a file on a folder, the Finder can undo the move [command-Z or Edit > Undo Move] so somewhere that event is stored. It is not revealed in the properties or info for the file however.

Question: is there a vanilla AppleScript or shell script method for determining where a file dropped on a folder with an action or a droplet came from?

I don’t think so.

The Finder is able to control it’s own actions internally and keeps only the most recent action for
the undo function. If it’s not be stored in the preference file, there is no way to get access to it.

Adam:

It’s likely I’ve misunderstood your intent (and StefanK’s reply probably answered your question).

But if you can’t inform the Finder of where the dropped item came from, you can certainly inform the script.

In droplet form:


on open this_item
	
	tell application "Finder"
		set this_item to this_item as text
		activate
		display dialog this_item
	end tell
	
end open

I don’t use folder actions much, but I suspect you can hash out something similar.

Anyways… just another shot in the dark.

Peter B.


Thanks, Peter;

Looking me right in the face (or as my mother used to say “If it had teeth it would bite you”). :rolleyes:

Adam