02-28-2026, 01:43 AM
I was hoping to not use trash as this is what I get when searching it on the web:
I was looking for something which would be more universal and thought the osascript would do the job, but apparently it's not being good and playing nice like it should. I guess trash it is, and folks may have to tweak as necessary for their own OS version if it's a slightly different syntax as warned about above.
Quote:Compatibility Across Versions
The Trash feature has been present in all versions of macOS, including earlier iterations like Mac OS X. However, the specific command-line methods and user interface may vary slightly between versions.
Conclusion
While the Trash feature is universally available across all macOS versions, the command-line access and specific functionalities may differ. Users can always find the Trash through the Finder or the Dock, regardless of the macOS version they are using.
I was looking for something which would be more universal and thought the osascript would do the job, but apparently it's not being good and playing nice like it should. I guess trash it is, and folks may have to tweak as necessary for their own OS version if it's a slightly different syntax as warned about above.

