• 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: Apple can it do this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple can it do this?


  • Subject: Re: Apple can it do this?
  • From: Hanaan Rosenthal <email@hidden>
  • Date: Wed, 24 Mar 2004 10:02:14 -0500
  • Organization: Custom Flow Solutions

Everything you describe is very possible.
Where are the files you want to delete? Are they always in the same folder or
folders?
Will you need to recursively delete files from nested folders as well?

The basic is:
tell app "Finder"
delete every file of folder "Path:to:folder" whose name ends with ".log"
--...etc.
end tell

You can use iDo Script Scherduler to schedule your scripts:
http://www.sophisticated.com/products/ido/ido_ss.html

Hanaan

>
> Okay, I am new to apple-script,
> in which, I want to do somethings,
> with my Mac.. First being this:
>
> Can Apple-script do the following;
>
> make a script, that will delete
> all .log files, and backup.log files,
> and .caches ?
>
> And now the kicker,
> have some type of Cron / Timer, thing happening
> where, you can adjust the timing of the activation
> of the script. i.e. every hour, every two hours,
> etc...
>
> Okay, Anyone?
>
> Tks
> Rick
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/
applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Apple can it do this?
  • Next by Date: AW: Apple can it do this?
  • Previous by thread: Re: Apple can it do this?
  • Next by thread: Re: Apple can it do this?
  • Index(es):
    • Date
    • Thread