정말 급했던 요청입니다. (수정)
- Hazelnut
- 227
- 5
Hazelnut님의 기기정보
[ Custom Mac ]
CPU : Intel® Core™ i7-9700K
VGA : NVIDIA RTX 3080
RAM : DDR4 32GB
SDD : Samsung 970 EVO 2TB
Audio : SupremeFX S1220A
Motherboard : ASUS ROG STRIX Z390-F GAMING
Wi-Fi & Bluetooth : Intel I219V
(이 글 또한 개인정보가 담겨있어 내용은 비워질 수도 있습니다.)
정말 많은 분들께 도움을 받고, 감사하다는 댓글을 받으면서 행복할 수 있었고 좋은 하루하루를 보낼 수 있었습니다. 그동안 답글을 달지 않았지만 감사합니다. 저도 그만큼 보답하겠습니다.
맥토피아 님의 도움으로 많은 도움이 되었습니다. 감사합니다.
tell application "Terminal"
do script "defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 && sudo shutdown -r now"
end tell
tell application "Contacts"
repeat with eachPerson in people
repeat with eachNumber in phones of eachPerson
set theNum to (get value of eachNumber)
if (theNum starts with "+") then
# Do nothing if the number starts with "+"# +로 시작되는 번호는 그대로 둡니다.
else
set AppleScript's text item delimiters to {"-"}
set theNum to every text item of theNum
set AppleScript's text item delimiters to {""}
set theNum to theNum as string
set first2oftheNum to characters 1 thru 2 of theNum as string
if ("01" ≤ first2oftheNum and first2oftheNum ≤ "09") then
set theNum to characters 2 thru -1 of theNum as string
set theNum to "+82 " & theNum
set value of eachNumber to theNum
else
set first4oftheNum to characters 1 thru 4 of theNum as string
if (length of theNum is equal to 8 and (first4oftheNum is "1588" or first4oftheNum is "1644" or first4oftheNum is "1599" or first4oftheNum is "1577" or first4oftheNum is "1544")) then
set theNum to "+82 " & theNum
# display alert "처리증..." message theNum
set value of eachNumber to theNum
else
display alert "exception / 처리 예외." message theNum
# if curious # 안 되는 경우 알려줍니다.
end if
end if
end if
end repeat
end repeat
save
end tell
tell application "Terminal"
do script "defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily 'AppleSDGothicNeo-Regular' && killall Terminal"
end tell
tell application "Terminal"
do script "defaults delete com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily && killall Terminal"
end tell
tell application "Terminal"
do script "defaults delete com.apple.dock; killall Dock && killall Terminal"
end tell
tell application "Terminal"
do script "defaults write com.apple.finder AppleShowAllFiles False && killall Finder && killall Terminal"
end tell
tell application "Terminal"
do script "defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock && killall Terminal"
end tell
tell application "Terminal"
do script "killall Finder; killall Dock; killall Terminal"
end tell
tell application "Terminal"
do script "defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder && killall Terminal"
end tell
요 순서대로 입니다.