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: "Jan-Bultereys" <email@hidden>
- Date: Fri, 11 Mar 2005 10:30:02 +0100
- Thread-topic: check a folder for folders and files
thanks Michelle, Wayne, Andrew, Adam, for your response, it seems that there are different options available... :)
maybe I own you a little more explanation.
What I want to do is:
1 - check a folder
2 - if there are folders in this folder get the name of the folder and compress it....
3 - if there are file in this folder do nothing.... (if there are file and folders in this folder, only compress the folders)
My (FTP) script is almost finished with adding this in the script I want to cover the option if people are
dropping folders in that folder.... because as far as I know FTP doesn't cover folders, right?
best regards,jan
> ----------
> From: Andrew Oliver
> Sent: Thursday, March 10, 2005 19:46 PM
> To: Jan-Bultereys; email@hidden
> Subject: Re: check a folder for folders and files
>
> On 3/10/05 8:10 AM, "Jan-Bultereys" <email@hidden> wrote:
>
> > 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.....
>
> I'm suspecting you really want a little more than what you say, but here
> goes:
>
> tell application "Finder"
> set topFolder to (choose folder)
> if (count folders of folder topFolder) > 0 then
> my doThis()
> end if
> if (count files in folder topFolder) > 0 then
> my doThat()
> end if
> end tell
>
> Andrew
> :)
>
>
>
_______________________________________________
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