If you can get a list of the selected files in this Finder window using AppleScript, you can probably use the Scripting Bridge in Cocoa to interact with the Finder. Copying documentation for apples,
Scripting Bridge is a framework and technology that makes it easy for Cocoa developers to manage and interact with scripted applications. Instead of including AppleScript scripts in your application or dealing with the complexities of sending and processing Apple events, you can simply send Objective-C messages to an object representing the scripting application. Your Cocoa application can do anything that the AppleScript script can use, but it does so in Objective-C code, which is integrated with the rest of your project code.
There is no Cocoa class that represents the Finder, or rather, the Finder window. Finder is an application and a scripting application, so Scripting Bridge is the way to go.
user557219
source share