Languages/Rust/Samples
Mac Finder Selected Files
This is actually purely AppleScript, but it's a useful way to get the selected files in Finder in Rust.
I tried to find objc binding for Rust.
FIFinderSyncController
is a class in FinderSync
framework. It has a method selectedItemURLs
which returns the selected items in Finder.
But I couldn't find a way to use this in Rust. let finder_sync_controller = class!(FIFinderSyncController);
doesn't work.
Searching for FIFinderSyncController
in Rust code on GitHub, I get nothing. https://github.com/search?q=FIFinderSyncController+language%3ARust+&type=code
How is this guide?