tell app "finder" to folder of window 1
tell app "finder" to folder of window 1
- Subject: tell app "finder" to folder of window 1
- From: bill fancher <email@hidden>
- Date: Mon, 19 Nov 2001 11:21:08 -0800
tell application "Finder" to folder of window 1
--> document file "test.txt" of disk "HD" of application "Finder"
This occurs in 10.x when a file is selected in a Finder column view.
Note that:
1) folder is not a property (or element) of any of Finder's window
variants
2) a document is not a folder
3) changing the view while retaining the selection gives a different
result
According to Apple, this behavior is correct. (You may want to adjust
your usage of "correct" accordingly, e.g., "2+2=5 is correct.")
--
bill