Associating files of a certain extension with an Applescript droplet

Hi, everyone. I posted this question on the Mac OS X Hints forum this morning, so I hope you’ll forgive me for cross-posting it here in an effort to reach more experts.

Someone offered a suggestion to specify the rso extension in the property list’s CFBundleDocumentTypes section, but unfortunately it didn’t make a difference. I’ve since provided the following information, too:

The messages I am citing are located here: http://forums.macosxhints.com/showthread.php?t=71355

Is anyone familiar with this type of situation? The files I am seeking to associate with the droplet do not have resource forks or traditional type/creator codes, if that has any bearing on the issue.

Thanks for your help,
Jim

I am pleased to report a solution to this problem: I recreated the droplet using Xcode’s Applescript Studio instead of the Script Editor. The resulting droplet application can successfully be set to open all files of a given extension. Just a little tweaking is necessary to obtain the the same behavior as a Script Editor droplet (namely, moving the on run code to on idle and adding quit statements).

It works for me with an AppleScript app bundle (from Script Editor, not Xcode). I removed the CFBundleTypeOSTypes array, and then I set the first element of the CFBundleTypeExtensions array to the desired extension.