• 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
tell app "finder" to folder of window 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Separating Text
  • Next by Date: Maximum Idle time 86400 seconds???
  • Previous by thread: Re: how to quit a script
  • Next by thread: Maximum Idle time 86400 seconds???
  • Index(es):
    • Date
    • Thread