• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: folder path of open finder window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: folder path of open finder window? (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: folder path of open finder window?
  • Next by Date: send message to another mac
  • Previous by thread: Re: folder path of open finder window?
  • Next by thread: Re: folder path of open finder window?
  • Index(es):
    • Date
    • Thread