Re: Get name of selected file in Finder window
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