Re: check a folder for folders and files
Re: check a folder for folders and files
- Subject: Re: check a folder for folders and files
- From: Adam Wuellner <email@hidden>
- Date: Thu, 10 Mar 2005 12:31:48 -0600
> hi applescript friends,
>
> I am looking for the syntax to do:
>
> 1 - check a folder (look at the content)
> 2 - if there are folders (in this folder) do this......
> 3 - if there are files (in this folder) do that.....
tell application "Finder" to tell folder (choose folder)
set {files_, folders_} to {files, folders}
if (count files_) > 0 then
-- do something with files_
end if
if (count folders_) > 0 then
-- do something with folders_
end if
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden