Folder Location

How would set a variable to the path of window 1?

You were pretty close…

tell application "Finder"
	set a_variable to the target of window 1
end tell