• 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: file list with Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file list with Finder


  • Subject: Re: file list with Finder
  • From: david <email@hidden>
  • Date: Sat, 12 Oct 2002 01:41:39 -0400

On Saturday, October 12, 2002, at 12:49 AM, Gakuji Ohtori wrote:

The following script returns {} when theFolder does not contain any files:

set theFolder to choose folder
tell application "Finder"
files in theFolder
end tell

But the following script generates an error when theFolder does not contain any files:

set theFolder to choose folder
tell application "Finder"
files in (entire contents of theFolder)
end tell

Is this a spec or a bug of Finder? I want the second script to return {}.


this works with both 'folder with items' and folder without items'

set theFolder to choose folder
tell application "Finder"
get (items of theFolder)
end tell

Mac OS X 1.2.1

David in Maine USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: file list with Finder
      • From: Gakuji Ohtori <email@hidden>
References: 
 >file list with Finder (From: Gakuji Ohtori <email@hidden>)

  • Prev by Date: Re: file list with Finder
  • Next by Date: Re: file list with Finder
  • Previous by thread: Re: file list with Finder
  • Next by thread: Re: file list with Finder
  • Index(es):
    • Date
    • Thread