To create an association between your LispWorks for Macintosh application and files with a specified type (file extension):
capi:cocoa-default-application-interface
with a message-callback.:open-file
message in the message-callback function.Also see the examples mentioned in Delivering a Cocoa CAPI application examples.
LispWorks Delivery User Guide - 15 Feb 2015