Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://x86.co.kr/macnews/4918009
- ___________________________________
- Changelog
- V1 - Added 7 Utilities
- Edited DarkChanger Script
- Thanks for Ael, Mactopia and All of X86 Users
- V2 - Translated to Korean
- Added 1 Utility
- V3 - Added 2 Utilities
- Thanks for All of X86 Users!!!
- set itemlist to {"모든 앱 종료 by Ael", "잠자기 비/활성화 토글 by Ael", "잠자기 상태 확인 by dahyukchoi", "사운드 관련 문제 해결 by dahyukchoi", "시동음 비/활성화 토글 by dahyukchoi", "Dock 강제 종료 by dahyukchoi", "Dock 아예 숨기기 by dahyukchoi", "다운로드 기록 삭제 (시스템내) by dahyukchoi", "숨겨진 파일/폴더 비/활성화 by dahyukchoi", "도움말", "크레딧"}
- set thetext to "X86 유틸리티 ALL-IN-ONE (Util86X)
- 7가지의 추가 기능"
- display dialog thetext buttons {"종료", "추가 기능", "다크모드 체인저"} default button {"추가 기능"} cancel button {"종료"} with icon note with title "X86 ALL-IN-ONE (Util86X)"
- if button returned of result = "다크모드 체인저" then
- tell application "System Events"
- if dark mode of appearance preferences is false then
- tell appearance preferences
- set dark mode to true
- end tell
- display notification "Dark Mode로 변경되었습니다." with title "Util86X" sound name "submarine"
- else
- tell appearance preferences
- set dark mode to false
- end tell
- display notification "Light Mode로 변경되었습니다." with title "Util86X" sound name "submarine"
- end if
- end tell
- else if button returned of result = "추가 기능" then
- set itemname to choose from list itemlist with prompt "메뉴를 선택해주세요." default items {"Quit All Apps"}
- if itemname contains "모든 앱 종료 by Ael" then
- --by Ael --Thanks Ael
- display dialog "모든 어플리케이션을 종료합니다." buttons {"닫기", "종료"} default button {"종료"}
- if button returned of result = "종료" then
- do shell script "cd `getconf DARWIN_USER_DIR`"
- tell application "System Events"
- set theVisibleApps to (name of application processes where visible is true)
- end tell
- repeat with thisApp in theVisibleApps
- try
- tell application thisApp
- try
- quit every document
- quit every window
- on error
- killall
- end try
- end tell
- end try
- end repeat
- end if
- end if
- if itemname contains "잠자기 비/활성화 토글 by Ael" then
- set the_script to "pmset -g"
- set the_result to do shell script the_script
- if contents of the_result does not contain "SleepDisabled" then
- do shell script "sudo pmset -a disablesleep 0" with administrator privileges
- display dialog "컴퓨터를 재부팅해주세요." buttons {"닫기"} cancel button {"닫기"}
- else if contents of the_result contains "SleepDisabled 1" then
- display dialog "잠자기가 비활성화 상태입니다." buttons {"닫기", "활성화"} default button {"활성화"} cancel button {"닫기"} with title "Sleep Toggle"
- if button returned of result = "활성화" then
- do shell script "sudo pmset -a disablesleep 0; sudo pmset -a sleep 1" with administrator privileges
- display notification "잠자기가 활성화 되었습니다." with title "Sleep Toggle" sound name "submarine"
- end if
- else if contents of the result contains "SleepDisabled 0" then
- display dialog "잠자기가 활성화 상태입니다." buttons {"닫기", "비활성화"} default button {"비활성화"} cancel button {"닫기"} with title "Sleep Toggle"
- if button returned of result = "비활성화" then
- do shell script "sudo pmset -a disablesleep 1; sudo pmset -a sleep 0" with administrator privileges
- tell application "System Events" to activate
- display notification "잠자기가 비활성화 되었습니다." with title "Sleep Toggle" sound name "submarine"
- end if
- end if
- end if
- if itemname contains "잠자기 상태 확인 by dahyukchoi" then
- set the_script to "pmset -g"
- set the_result to do shell script the_script
- if contents of the_result does not contain "SleepDisabled" then
- display dialog "잠자기 설정이 보이지 않습니다. 터미널에서 sudo pmset -a disablesleep 0을 실행해주세요." buttons {"닫기"} cancel button {"닫기"} with title "Check SleepDisabled"
- else if contents of the_result contains "SleepDisabled 1" then
- display dialog "잠자기가 비활성화 상태입니다." buttons {"닫기"} cancel button {"닫기"} with title "Check SleepDisabled"
- else if contents of the result contains "SleepDisabled 0" then
- display dialog "잠자기가 활성화 상태입니다." buttons {"닫기"} cancel button {"닫기"} with title "Check SleepDisabled"
- end if
- end if
- if itemname contains "사운드 관련 문제 해결 by dahyukchoi" then
- set theDialogText to "현재 시간은 " & (current date) & "입니다.
- 이 앱을 이용해주셔서 감사합니다. Coreaudiod를 종료하시겠습니까?"
- display dialog theDialogText buttons {"닫기", "종료", "제작자"} default button {"종료"} cancel 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
- end if
- if itemname contains "시동음 비/활성화 토글 by dahyukchoi" then
- display dialog "시동음 비/활성화 토글 by dahyukchoi" buttons {"닫기", "토글", "초기 설정"} default button {"토글"} cancel button {"닫기"} with title "Boot Sound Control"
- if button returned of result = "초기 설정" then
- do shell script "sudo nvram StartupMute=%00" with administrator privileges
- display dialog "앱를 재실행해주세요." buttons {"닫기"} cancel button {"닫기"}
- else if button returned of result = "토글" then
- set the_script to "nvram StartupMute"
- set the_result to do shell script the_script
- if contents of the_result contains "StartupMute %01" then
- display dialog "시동음이 비활성화 상태입니다." buttons {"닫기", "활성화"} default button {"활성화"} cancel button {"닫기"} with title "Boot Sound Control"
- if button returned of result = "활성화" then
- do shell script "sudo nvram StartupMute=%00" with administrator privileges
- display notification "시동음이 활성화 되었습니다." with title "Boot Sound Control" sound name "submarine"
- end if
- else if contents of the_result contains "StartupMute %00" then
- display dialog "시동음이 활성화 상태입니다." buttons {"닫기", "비활성화"} default button {"비활성화"} cancel button {"닫기"} with title "Boot Sound Control"
- if button returned of result = "비활성화" then
- do shell script "sudo nvram StartupMute=%01" with administrator privileges
- display notification "시동음이 비활성화 되었습니다." with title "Boot Sound Control" sound name "submarine"
- end if
- end if
- end if
- else if itemname contains "Dock 강제 종료 by dahyukchoi" then
- display dialog "Dock을 강제 종료하시겠습니까?" buttons {"닫기", "종료"} cancel button {"닫기"} with title "Util86X"
- if button returned of result = "종료" then
- set the_script to "killall Dock"
- do shell script the_script
- display notification "Dock이 강제 종료되었습니다." with title "Util86X" sound name "submarine"
- end if
- else if itemname contains "Dock 아예 숨기기 by dahyukchoi" then
- display dialog "Dock을 아예 숨기시겠습니까?" buttons {"닫기", "숨기기", "복원"} cancel button {"닫기"} with title "Util86X"
- if button returned of result = "숨기기" then
- set the_script to "defaults write com.apple.dock autohide -bool true && killall Dock"
- set the_scr to "defaults write com.apple.dock autohide-delay -float 1000 && killall Dock"
- set the_scrp to "defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock"
- do shell script the_script
- do shell script the_scr
- do shell script the_scrp
- display notification "Dock이 숨겨졌습니다." with title "Util86X" sound name "submarine"
- else if button returned of result = "복원" then
- set the_script to "defaults write com.apple.dock autohide -bool false && killall Dock"
- set the_scr to "defaults write com.apple.dock autohide-delay -float 0.1 && killall Dock"
- set the_scrp to "defaults write com.apple.dock no-bouncing -bool FALSE && killall Dock"
- do shell script the_script
- do shell script the_scr
- do shell script the_scrp
- display notification "복원되었습니다." with title "Util86X" sound name "submarine"
- end if
- end if
- if itemname contains "다운로드 기록 삭제 (시스템내) by dahyukchoi" then
- display dialog "다운로드 기록을 삭제하시겠습니까?" buttons {"닫기", "삭제"} cancel button {"닫기"} with title "Util86X"
- if button returned of result = "삭제" then
- set the_script to "sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'"
- do shell script the_script
- display notification "다운로드 기록이 삭제되었습니다." with title "Util86X" sound name "submarine"
- end if
- end if
- if itemname contains "숨겨진 파일/폴더 비/활성화 by dahyukchoi" then
- set the_script to "defaults read com.apple.finder AppleShowAllFiles"
- set the_result to do shell script the_script
- if contents of the_result contains "FALSE" then
- display dialog "숨겨진 파일/폴더를 보시겠습니까?" buttons {"닫기", "활성화"} cancel button {"닫기"} with title "Util86X"
- if button returned of result = "활성화" then
- set the_script to "defaults write com.apple.finder AppleShowAllFiles TRUE"
- do shell script the_script
- display notification "활성화되었습니다." with title "Util86X" sound name "submarine"
- end if
- else if contents of the_result contains "TRUE" then
- display dialog "숨겨진 파일/폴더를 안보시겠습니까?" buttons {"닫기", "비활성화"} cancel button {"닫기"} with title "Util86X"
- if button returned of result = "비활성화" then
- set the_script to "defaults write com.apple.finder AppleShowAllFiles FALSE"
- do shell script the_script
- display notification "비활성화되었습니다." with title "Util86X" sound name "submarine"
- end if
- end if
- end if
- if itemname contains "크레딧" then
- display dialog "X86 유저분들 감사합니다!!!!
- Special Thanks: Mactopia, Ael" buttons {"닫기"} cancel button {"닫기"} with title "X86 ALL-IN-ONE (Util86X)" with icon note
- end if
- if itemname contains "도움말" then
- display dialog "이 앱은 X86에 올라온 유틸리티들을 모아논
- 앱입니다. DarkChanger는 X86에 올라온 toggle dark mode와 Dark86을 기반으로 하여 만들어졌습니다. Sleep Toggle은 Ael님의 Sleep Toggle을 기반으로 하였습니다. 이외에 Check SleepDisabled,
- PKILL COREAUDIOD, Boot Sound Control, Kill Dock, Hide Dock은 제작자 본인이 만든 앱을 기반으로 하여 만들어졌습니다. 이 외에 추가할수 있는 유틸리티는 추가하려 노력하고 있습니다. 이 앱을 사용해주셔서
- 감사합니다!" buttons {"닫기"} cancel button {"닫기"} with icon note with title "도움말"
- end if
- end if
Add Comment
Please, Sign In to add comment