Re: script to delete .html files from a folder
Re: script to delete .html files from a folder
- Subject: Re: script to delete .html files from a folder
- From: "Adam K. Wuellner" <email@hidden>
- Date: Fri, 5 Nov 2004 10:56:58 -0600
On Nov 5, 2004, at 10:08 AM, Roger Donaghy wrote:
Does anyone know the cause of this error? Any help would be greatly
appreciated.
To answer your question, in line 3 of your script you ask for the
"items in thePath". thePath is a string, and so you get a list of
every character in the string. If you substitute
set theCount to count of files in folder thePath
you should get what you intended.
But, as previously posted, your routine can be shortened (and, IMO,
clarified) considerably.
- Adam
_______________________________________________
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