Can you implement OS X's Finder download progress bars from a shell script?
问题 At first I thought this might be some variation on the extended attributes that can be modified with the xattr command line tool. However, I've staged several tests, and the files don't seem to have any special attributes while in this mode. Is this accessible at all from the command line, or is it only possible from within some cocoa api? 回答1: If you don't mind scripting with swift: #!/usr/bin/env swift import Foundation let path = ProcessInfo.processInfo.environment["HOME"]! + "/Downloads/a