Re: file list with Finder
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.