• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: script to delete .html files from a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >script to delete .html files from a folder (From: Roger Donaghy <email@hidden>)
 >Re: script to delete .html files from a folder (From: Michelle Steiner <email@hidden>)
 >Re: script to delete .html files from a folder (From: Courtney Schwartz <email@hidden>)
 >Re: script to delete .html files from a folder (From: Michelle Steiner <email@hidden>)
 >Re: script to delete .html files from a folder (From: "Adam K. Wuellner" <email@hidden>)
 >Re: script to delete .html files from a folder (From: Michelle Steiner <email@hidden>)
 >Re: script to delete .html files from a folder (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: script to delete .html files from a folder
  • Next by Date: Re: script to delete .html files from a folder
  • Previous by thread: Re: script to delete .html files from a folder
  • Next by thread: Bug for network users running scripts?
  • Index(es):
    • Date
    • Thread