*적용중인 도장
Ael님의 Sleep Toggle 스크립트를 참조하였습니다. 감사합니다.
맥이 사운드 장치를 인식하지 못할때 이 앱을 실행시켜주고 종료를 누르면 거의 해결이 됩니다.
만든 이유는 제 맥북이 이어폰을 꽂으면 저 Coreaudiod가 인식을 해야하는데 인식을 안해서 만든 앱입니다.
단순하게 Coreaudiod를 종료시킵니다. pkill 명령어를 사용하였습니다. 파일은 맨밑에 있습니다.
아래는 스크립트입니다. 마음껏 수정하세요.
--Thanks for Ael from x86.co.kr
--By. dahyukchoi
set theDialogText to "현재 시간은 " & (current date) & "입니다.
이 앱을 이용해주셔서 감사합니다. Coreaudiod를 종료하시겠습니까?"
display dialog theDialogText buttons {"닫기", "종료", "제작자"} default button {"종료"}
if button returned of result = "종료" then
do shell script "sudo pkill coreaudiod" with administrator privileges
display notification "Coreaudiod를 종료했습니다." with title "PKILL COREAUDIOD" sound name "submarine"
else if button returned of result = "제작자" then
display dialog "Made By X86 USER" with title "PKILL COREAUDIOD"
end if
(그런데 빅서 진짜 오류가 심하네요. 빨리 고쳐졌으면..)