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: Michelle Steiner <email@hidden>
- Date: Fri, 5 Nov 2004 11:28:10 -0700
On Nov 5, 2004, at 11:16 AM, Adam K. Wuellner wrote:
But that is moot because even if he had initiated theCount correctly,
he would have had the same problem.
Moot shmoot; to get it to work, he has to fix both problems.
But he doesn't have to use that paradigm at all when he can use the
two-line script I had suggested. Here it is again:
set ThePath to (path to documents folder as string) & "testScript" as
alias
tell application "Finder" to move (files of ThePath whose name
extension is "html") to the trash
Alternatively:
set ThePath to (path to documents folder as string) & "testScript"
tell application "Finder" to move (files of folder ThePath whose name
extension is "html") to the trash
--
"The optimist proclaims that this is the best of all possible worlds ;
and the pessimist fears this is true." --James Branch Cabell
_______________________________________________
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