What if the same file name appears more than once on the file system? This approach will fail for that case. Better to read the meta data OS X is reading to determine the 'Put Back' location in the first place.
–
Ian C.♦May 29 '12 at 14:21

1

I thought I was very explicit about wanting a solution that did not require actually putting back the file. How much clearer could I have made it???
–
kjoMay 29 '12 at 15:21

@kjo For other people who search for this question that might be the solution though.
–
ؘؘؘؘMay 29 '12 at 16:41

3

@Lri: if so, he/she should have submitted a comment, not an answer. It is unfair and disrespectful to the OP who takes pains to write a clear question not to answer what was asked. It also gives to the casual observer the wrong impression that the question has already been answered, thus reducing the likelihood that the question the OP took pains to clearly state will actually get an answer. If SE wants that those who post do a good job with the wording of their questions, then it should also hold the responders to the minimal courtesy of answering what is asked.
–
kjoMay 29 '12 at 17:45