Piles... well bundles.... non-piles

I have done some thinking about a kind of folder action suite that I would like to see… and I was wondering if anyone had some suggestions or answers to the occasional question. I want to have a script in my script menu called “make non-pile” (or whatever) that creates a bundle style folder, assigns its icon and attaches the folder actions such that:

  • you can drop files and folders into a non-pile
  • on open a non-pile opens all of the files it contains without displaying the folder
    - this is like a bundle, to view contents you have to bring up the context menu

basically that’s it. I am just not sure how to register a folder as a certain type of bundle (which should automatically attach the icon)

You must create an executable bundle file (eg, an AS-Studio app), which makes the actions you describe. On double-click, open the files stored in your bundle. On drag&drop, store such files into your bundle.
You need it to be an executable, since it must repond to both “run” and “open” events.
You could also create a fake-pkg file with your own signature and an app to handle such file, but it won’t react to a drag&drop action.