플레이어가 MAC OS로 만든 도트 파일이 음악 파일이라고 생각하기 때문에 내 자동차 스테레오와 정확히 같은 문제가 있습니다 .1 파일 / 2는 재생할 수 없습니다.
이제 매버릭스를위한 개선 된 무료 솔루션을 제공합니다.
- AppleScript 스크립트를 실행하기위한 Automator 응용 프로그램 생성
이 스크립트를 사용하십시오 :
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 run
예를 들어 응용 프로그램을 DiskCleaner.app로 저장하십시오.
이 스크립트는 정리하고 꺼내는 USB 디스크를 선택하도록 요청합니다. 그런 다음 USB 디스크를 정리하고 (현재 자격 증명으로 실패한 경우 관리자 자격 증명으로 시도) 가능한 경우 꺼내십시오.
물론 여전히 개선의 여지가 있지만, 나는이 대본을 직접 작성했습니다!
또한 더 많은 파일을 정리하기 위해 코드 줄을 추가 할 수있는 유연성이 있습니다.
즐겨!