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: "Michelle Steiner" <email@hidden>
- Date: Thu, 10 Mar 2005 18:34:31 -0000 (GMT)
- Importance: Normal
On Thu, March 10, 2005 4:10 pm, Jan-Bultereys said:
> 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.....
set foo to choose folder
tell application "Finder"
try
set foos_folders to foo's folders as alias list
on error
set foos_folders to foo's folders as alias
end try
try
set foos_files to foo's files as alias list
on error
set foos_files to foo's files as alias
end try
end tell
if foos_folders is not {} then
--do this
end if
if foos_files is not {} then
--do that
end if
_______________________________________________
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