Re: folder path of open finder window?
Re: folder path of open finder window?
- Subject: Re: folder path of open finder window?
- From: Andy Wylie <email@hidden>
- Date: Thu, 16 Aug 2001 23:11:12 +1200
on 16/8/01 8:35 PM, Nigel Garvey at email@hidden
wrote:
>
Jim Deacutis wrote on Wed, 15 Aug 2001 23:23:26 -0400:
>
>
> Can any one help me with this?
>
>
>
> I need to set a variable to the full path of the open folder (not
>
> necessarily on the desktop) showing as the topmost window on the
>
> desktop.
>
>
>
> Thanks in advance.
>
>
tell application "Finder"
>
set fred to folder of front container window as string
>
end tell
>
>
I don't know why this works. My Finder dictionary doesn't mention that
>
windows have a 'folder' property.
>
For Finder container and folder seem completely interchangeable. What I find
odd is a popup that can be referenced as window 1 ...
tell application "Finder"
set fred to index of window 1
end tell
--> 2
--and...
tell application "Finder"
set fred to id of container of window 1
end tell
--> 3362
According to the dictionary id is a folder and not container parameter.
_____________________________ Andy