• 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: Get name of selected file in Finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get name of selected file in Finder window


  • Subject: Re: Get name of selected file in Finder window
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 20 May 2008 23:04:38 -0700

On May 20, 2008, at 10:58 PM, Alan Fairlie wrote:

Is there away to get the name of the currently selected file of a Finder window which sits in a folder with multiple files.

Using 'name of item 1 of window 1' gets the first file of the folder.

tell application "Finder" to get the name of the first item of (get the selection)

-- Michelle

-- 
"To occupy Iraq would instantly shatter our coalition, turning the whole Arab world against us and make a broken tyrant into a latter-day hero ... assigning young soldiers to a fruitless hunt for a securely entrenched dictator and condemning them to fight in what would be an un-winnable urban guerilla war. It could only plunge that part of the world into even greater instability."
 - George H.W. Bush

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get name of selected file in Finder window
      • From: Alan Fairlie <email@hidden>
References: 
 >Get name of selected file in Finder window (From: Alan Fairlie <email@hidden>)

  • Prev by Date: Get name of selected file in Finder window
  • Next by Date: Re: Get name of selected file in Finder window
  • Previous by thread: Get name of selected file in Finder window
  • Next by thread: Re: Get name of selected file in Finder window
  • Index(es):
    • Date
    • Thread