I recently updated the shell add-on for OS X, that overloads rm to not remove the items, but move them into trash instead. Before the update, a for loop moved every single item given in the command line into trash using one osascript (Apple Script) call per item. This caused a blocking shell with one ‘ﬂupp’ sound eﬀect for each moved item, which can be quite tedious, when removing many items, even if they are small. Now, after the update, a item list is created and ﬁlled with all given items to remove and in the end passed to one osascript call.
Apple Script Development related