• 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: help with folder script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with folder script


  • Subject: Re: help with folder script
  • From: Philip Aker <email@hidden>
  • Date: Tue, 2 Dec 2008 11:50:34 -0800

On 2008-12-02, at 11:31:55, David Wolfe wrote:

I'm wondering if it's possible to write a script that

1) runs on a file server each day. We could use some other mechanism for running the script, like Hazel or launchd.
2) recurses down all levels of folders looking for any folder whose name contains a certain string, like "Unaltered."
3) when such folders are found, the contents are evaluated to find if any of the contents are NOT archive files (i.e., .zip, .sit, etc.)
4) if such files are found, they are individually zipped, then the originals deleted.

What does everyone think? Possible? Could you give me a push to get started?

Look into <x-man-page://find> with the 'xargs' option.


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >help with folder script (From: David Wolfe <email@hidden>)

  • Prev by Date: help with folder script
  • Next by Date: Tell Blocks Considered Harmful (was Re: open for access)
  • Previous by thread: help with folder script
  • Next by thread: Run QuartzComposer composition from AppleScript?
  • Index(es):
    • Date
    • Thread