Apple 스크립트가 필요한지 확실하지 않지만 필요한 대부분을 수행하는 것 같습니다. 대안을 자유롭게 제공하십시오.
카운트 다운 비디오를 시작하려면 정확한 시간에 프로그램에 캐릭터를 보내야합니다. 내가 가진 Apple 스크립트는
tell application "ProPresenter 5"
activate
end tell
tell application "System Events"
keystroke "z"
end tell
내가 필요한 것은 언젠가는 10:40:25에 시작하고 다음 날에는 10:40:15에 시작할 수 있어야합니다. 내가 보는 모든 가이드에는 캘린더 또는 자동화 기능이 포함되어 있지만 1 분 단위로 해결됩니다. 약 20 분 전에 설정하면됩니다.
중요한 경우 OS x 10.8.5에 있습니다.
다음은 시스템 이벤트가 키 입력을 보낼 시간을 입력하도록 요청하는 대화 상자를 표시하는 약간의 설정입니다. 이 스크립트를 응용 프로그램으로 저장하고 원할 때마다 실행할 수 있습니다. 또 다른 옵션은 코드의 맨 처음 두 줄을 제거하고 다음으로 대체하는 것입니다 property requested_time : "10:40:25 AM”
. 그런 다음 iCal 이벤트에 스크립트를 추가하여 원하는 시간에 매일 시작할 수 있습니다.
set requested_time to display dialog "Please Enter Your Start Time With The Following Format: Hour:Minutes:Seconds" default answer "10:40:25 AM" buttons {"OK"} default button 1
set requested_time to text returned of requested_time
set theTime to time string of (current date)
tell application "ProPresenter 5" to launch -- Opens The App Without Bringing It Up Upfront. Added This Line To Make Sure Your Application Is Running When System Events Sends The Keystroke. You Can Always Remove This Line If You Prefer
repeat until theTime is greater than or equal to requested_time -- Added The "Greater Than" Just As A Failsafe
delay 1
set theTime to time string of (current date)
end repeat
tell application "ProPresenter 5" to activate
delay .5 -- My system did not need this delay. Yours may not either, but I added it just in case.
tell application "System Events"
keystroke "z"
end tell
또는이 버전의 스크립트를 앱으로 저장할 수 있습니다.
property requested_time : "10:40:25 AM”
set theTime to time string of (current date)
tell application "ProPresenter 5" to launch -- Opens The App Without Bringing It Up Upfront. Added This Line To Make Sure Your Application Is Running When System Events Sends The Keystroke. You Can Always Remove This Line If You Prefer
repeat until theTime is greater than or equal to requested_time -- Added The "Greater Than" Just As A Failsafe
delay 1
set theTime to time string of (current date)
end repeat
tell application "ProPresenter 5" to activate
delay .5 -- My system did not need this delay. Yours may not either, but I added it just in case.
tell application "System Events"
keystroke "z"
end tell
그런 다음 매일 반복 할 새 캘린더 이벤트를 생성 할 수 있으며 20 분 전에 앱으로 저장 한 스크립트가 실행됩니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다