Jak usunąć śmieci smb, pliki ".DS_Store" oraz "._*"?
#1
Napisano 03 grudnia 2017 - 20:27
#2
Napisano 04 grudnia 2017 - 12:45
Użytkownik John Sherridan edytował ten post 04 grudnia 2017 - 12:46
Mac Mini Late 2012 i7/128SSD/1TB HDD/16GB-High Sierra, MacBook Pro 13" Mid 2009 C2D 2.26GHz/500GB HDD/8GB-El Capitan, iPhone 6 Plus-iOS 11
#3
Napisano 04 grudnia 2017 - 14:32
Nie wiem czy chodzi na High SIerra ale Blue Harvest mam ja, dziewczyna która też ma maka używa jakiegoś z Mac App Store
- MTR lubi to
Komputer: Mac Pro, macOS Monterey, Intel Xeon Quad Core 3,7 GHz, 64 GB DDR 3, Dual AMD Fire Pro D700, 1 TB SSD PCIe, 8 TB LaCie Thunderbolt 2 RAID 0
Telefon: iPhone SE 32 GB, iOS 13, Watch 3, odtwarzacz: Fiio X5 III + Sennheiser HD 598
#4
Napisano 04 grudnia 2017 - 16:34
Blue Harvest działa na High Sierra bez problemów. Przynajmniej ostatnia wersja 6.42
- MTR lubi to
Nie czytam prywatnych wiadomości.
#5
Napisano 04 grudnia 2017 - 22:00
Wklej w Automatorze jako apple script i zapisz jako aplikację (ładnie czyści wszystkie peny ze śmieci).
Użycie na własną odpowiedzialność
skrypt:
on run {input, parameters} try tell application "Finder" to set allDrives to the name of every disk whose local volume is true and startup is false set driveName to {choose from list allDrives with title "DiskCleaner" with prompt "Disk to Clean and Eject:" OK button name "Clean and Eject" cancel button name "Abort"} as text set getDriveIdentifier to "diskutil info " & quoted form of driveName & " | grep Ident | awk '{print $3}'" set driveIdentifier to do shell script getDriveIdentifier try do shell script "find /Volumes/" & quoted form of driveName & " -name '.DS_Store' -type f -delete" do shell script "find /Volumes/" & quoted form of driveName & " -name '.FBC*' -type f -delete" do shell script "find /Volumes/" & quoted form of driveName & " -name '._*' -type f -delete" do shell script "rm -rf /Volumes/" & quoted form of driveName & "/.{,_.}{fseventsd,Spotlight-V*,Trashes}" display notification "Disk Cleaned" on error try do shell script "sudo find /Volumes/" & quoted form of driveName & " -name '.DS_Store' -type f -delete" with administrator privileges do shell script "sudo find /Volumes/" & quoted form of driveName & " -name '.FBC*' -type f -delete" with administrator privileges do shell script "sudo find /Volumes/" & quoted form of driveName & " -name '._*' -type f -delete" with administrator privileges do shell script "sudo rm -rf /Volumes/" & quoted form of driveName & "/.{,_.}{fseventsd,Spotlight-V*,Trashes}" with administrator privileges display notification "Disk Cleaned" on error display notification "Can't Clean, Permission Denied" end try end try delay 1 try do shell script "diskutil eject " & driveIdentifier display notification "Disk Ejected" on error display notification "Can't Eject, Disk in Use" end try on error display notification "No Disk to Clean and Eject" end try end runZnalazłem źródło - przedostatni post w dyskusji:
https://superuser.com/questions/319553/does-anyone-have-a-mac-terminal-script-to-remove-hidden-files
- MTR lubi to
#6
Napisano 05 grudnia 2017 - 19:19
dziękuję Wam
w międzyczasie znalazłem w AppStore programik firmy MacPaw (ci od CleanMyMac3), który nazywa się CleanMyDrive2. Robi to, o co pytałem i parę innych rzeczy, jest bezpłatny (Blue Harvest kosztuje 7 dych), i ma polski interfejs!
linki do programu:
https://search.itune...h=mac/macpawinc
https://macpaw.com/cleanmydrive
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych