counting files
counting files
- Subject: counting files
- From: email@hidden
- Date: Tue, 16 Jul 2002 14:17:14 EDT
set Source_Folder to "WisdomQuesteLibrary:AllwestScans:" as alias
-- Note: ListOFiles is a list variable, with each list entry containing a
-- filename/subfolder name, or an empty list if there are no contents
set ListOFiles to list folder Source_Folder
set TheNumberOfFiles to the number of items of ListOFiles
OR, more compactly:
set ListOFiles to list folder "WisdomQuesteLibrary:AllwestScans:"
set TheNumberOfFiles to the number of items of ListOFiles
Best Wishes,
=-= Marc Glasgow
Duane wrote:
I am trying to get the result of the count of the number of
files in a folder
set the source_folder to alias
"WisdomQuesteLibrary:AllwestScans:" set the file_count to
the count of the source_folder each file if file_count is 1
then beep else something else
I get a Finder expected a reference error
"count of the source_folder each file"
_______________________________________________
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.