Page 1 of 1

Rule for matching real folders

PostPosted: Tue Oct 07, 2008 11:19 am
by Diger_s
Hi.
I trying to create a drop-box that sends files to my server and then presents a link for me to share. To make it easy for others I want to compress folders. Problem is that os X mix up folders and files, example applications. In terminal the app is a folder, in finder the app is an app.
My question is: How do I match a rule towards all folders regardless if they are treated as files in os x?

Re: Rule for matching real folders

PostPosted: Wed Oct 08, 2008 11:58 am
by Mr_Noodle
You could try filtering with "Kind is not Document". "Document" is a generic classification for regular files. Note that things like aliases will not be considered documents either but it's a start. Otherwise, I think you may have to drop to a shell script and scrape the output of 'mdls' and look for "public.directory".

Another option would be to compress everything, file and folder alike.