Applescript to create group from PDF?

Is there already an AppleScript to create a new group from a PDF (or other document), ideally with the same name?

So, MyFile.pdf would be placed in a new group entitled MyFile.

This would be great when trying to organize notes together with references.

I’m a total newbie at AppleScript. If it doesn’t exist, is anyone willing to whip up such a script?


[post removed; not OT]

See viewtopic.php?f=20&t=12540