tag:blogger.com,1999:blog-3062430.post6610323761174494996..comments2022-12-04T23:52:44.912-08:00Comments on Vic’s Blog: Move to Trash from the Mac Command LineVictor Shihhttp://www.blogger.com/profile/03074915000996247481noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3062430.post-67608483449119622422010-05-20T19:09:35.471-07:002010-05-20T19:09:35.471-07:00you can add
afplay /System/Library/Components/Cor...you can add<br /><br />afplay /System/Library/Components/CoreAudio.component/Contents/Resources/SystemSounds/finder/move\ to\ trash.aif <br /><br />and it will play Finder's move-to-trash soundstibhttp://www.pureandapplied.com.aunoreply@blogger.comtag:blogger.com,1999:blog-3062430.post-51787906445053209892009-03-14T11:44:00.000-07:002009-03-14T11:44:00.000-07:00OS X comes with the 'osascript' utility which exec...OS X comes with the 'osascript' utility which executes arbitrary AppleScripts from the command line. I wrote a utility a while back that uses osascript to not just simulate the behaviour of trashing files, but to piggyback on Finder's native trashing implementation. Check it out if you're interested: http://alphahelical.com/code/osx/trash/Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3062430.post-40840378449845375062008-12-09T02:10:00.000-08:002008-12-09T02:10:00.000-08:00This just saved me the effort of figuring out how ...This just saved me the effort of figuring out how to do this on my own.<BR/><BR/>Thanks!Bhttps://www.blogger.com/profile/17425657861813283085noreply@blogger.comtag:blogger.com,1999:blog-3062430.post-13763257660773819122008-04-10T19:54:00.000-07:002008-04-10T19:54:00.000-07:00Ah, I knew I forgot something. I'm on it.Ah, I knew I forgot something. I'm on it.Victor Shihhttps://www.blogger.com/profile/03074915000996247481noreply@blogger.comtag:blogger.com,1999:blog-3062430.post-66655101062221191702008-04-09T17:19:00.000-07:002008-04-09T17:19:00.000-07:00Does it make that annoying click noise too? Well,...Does it make that annoying click noise too? Well, that's more of a feature if it doesn't.Steven Tothhttps://www.blogger.com/profile/11381501065304446992noreply@blogger.com