There is no way to script the Finder from a sandboxed app is there?
Finder has no access-groups vai sdef, so the only way i could get this to work is by using
<key>com.apple.security.temporary-exception.apple-events</key>
<string>com.apple.finder</string>
in the entitlements. Of course, this caused a rejection from Apple. Apparently, if i can convince the user to install AppleScript file(s) into FileManager.SearchPathDirectory.applicationScriptsDirectory it may work. Seems to be an high hurdle. Any other possible ways?
I understand, it's a valid security concern. I'm only using AppleScript to get the Desktop icon names and positions, the Desktop View Options text size and icon size and the bounds of the Desktop window. I use the return data to 'memorize' and 'restore' various icon arrangements on the Desktop. Is there any other way to achieve this in an macOS app that would not be rejected? I expect not, since it appears only the Finder knows such information.
Thanks,