0

메시지 미리보기를 표시하는 알림의 메시지 설정을 전환 할 수있는 AppleScript를 만들 수 있는지 궁금한가요? 그런 다음 스크립트를 호출하기 위해 quicksilver를 사용했고,이 스크립트는 applescript로 가능하며 스크립트를 시작하기 위해 적절한 호출을 신속하게 만들 수 있습니까? 나는 OS를 운영하고있다.알림 센터에서 applescript/quicksilver로 메시지 미리보기를 전환하십시오.

답변

1

이는 "연락처보기 메시지 미리보기 '체크 박스 전환 :

tell application "System Preferences" 
    reveal pane id "com.apple.preference.notifications" 
end tell 
tell application "System Events" to tell window 1 of process "System Preferences" 
    repeat with r in rows of table 1 of scroll area 1 
     if name of UI element 1 of r is "Messages" then 
      set selected of r to true 
      exit repeat 
     end if 
    end repeat 
    click checkbox "Show message preview" of group 1 
end tell 
+0

가 감사를! 지금은 퀵실버로 구현하려고합니다. – shreddish