특정 시간에 applescript 실행

버드 맨 3131

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에 있습니다.

ws1zpink

다음은 시스템 이벤트가 키 입력을 보낼 시간을 입력하도록 요청하는 대화 상자를 표시하는 약간의 설정입니다. 이 스크립트를 응용 프로그램으로 저장하고 원할 때마다 실행할 수 있습니다. 또 다른 옵션은 코드의 맨 처음 두 줄을 제거하고 다음으로 대체하는 것입니다 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] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Applescript 알람은 특정 시간에 실행되고 온도를 말합니다.

분류에서Dev

특정 시간에 AWS Lambda 실행

분류에서Dev

ODOO : 특정 시간에 cron 실행

분류에서Dev

특정 시간에 함수 실행

분류에서Dev

이 특정 For 루프의 실행 시간

분류에서Dev

특정 시간 동안 명령 실행

분류에서Dev

특정 시간 동안 명령 실행

분류에서Dev

VB.NET에서 특정 시간에 함수 실행

분류에서Dev

특정 시간에 지연된 작업 실행

분류에서Dev

매일 특정 시간에 Airflow DAG를 실행할 수 없음

분류에서Dev

특정 실행 시간 깊이에 대한 json_decode

분류에서Dev

AlarmManager가 특정 시간에 실행되고 반복됩니다.

분류에서Dev

특정 시간에 코드를 실행할 수 있습니까?

분류에서Dev

특정 시간에 실행할 로컬 알림 만들기

분류에서Dev

지연된 작업을 특정 날짜 시간에 실행

분류에서Dev

KDE-시작할 때 특정 작업 공간에서 특정 명령 실행

분류에서Dev

특정 시점에서 코드 실행

분류에서Dev

AppleScript에서 InDesign에서 ExtendScript 실행

분류에서Dev

특정 스크립트를 실행할 시간 간격 지정

분류에서Dev

InDesign 2020의 AppleScript에서 ExtendScript 실행

분류에서Dev

특정 시간에 실행되도록 Azure 일괄 클러스터 설정

분류에서Dev

일정 프로그램을 특정 시간에 실행할 수 있습니까?

분류에서Dev

cpanel-특정 시간 후에 실행할 크론 작업 설정

분류에서Dev

특정 시간에 실행되도록 작업을 설정하는 방법

분류에서Dev

View의 특정 부분에서 실행 시간을 측정하는 방법

분류에서Dev

AppleScript-AppleScript에서 명령을 실행해야합니다.

분류에서Dev

Windows에서 특정 시간에 Java 프로그램 자동 실행

분류에서Dev

Windows에서 특정 시간에 Java 프로그램 자동 실행

분류에서Dev

SailsJS에서 특정 시간에 서비스를 실행하는 방법

Related 관련 기사

  1. 1

    Applescript 알람은 특정 시간에 실행되고 온도를 말합니다.

  2. 2

    특정 시간에 AWS Lambda 실행

  3. 3

    ODOO : 특정 시간에 cron 실행

  4. 4

    특정 시간에 함수 실행

  5. 5

    이 특정 For 루프의 실행 시간

  6. 6

    특정 시간 동안 명령 실행

  7. 7

    특정 시간 동안 명령 실행

  8. 8

    VB.NET에서 특정 시간에 함수 실행

  9. 9

    특정 시간에 지연된 작업 실행

  10. 10

    매일 특정 시간에 Airflow DAG를 실행할 수 없음

  11. 11

    특정 실행 시간 깊이에 대한 json_decode

  12. 12

    AlarmManager가 특정 시간에 실행되고 반복됩니다.

  13. 13

    특정 시간에 코드를 실행할 수 있습니까?

  14. 14

    특정 시간에 실행할 로컬 알림 만들기

  15. 15

    지연된 작업을 특정 날짜 시간에 실행

  16. 16

    KDE-시작할 때 특정 작업 공간에서 특정 명령 실행

  17. 17

    특정 시점에서 코드 실행

  18. 18

    AppleScript에서 InDesign에서 ExtendScript 실행

  19. 19

    특정 스크립트를 실행할 시간 간격 지정

  20. 20

    InDesign 2020의 AppleScript에서 ExtendScript 실행

  21. 21

    특정 시간에 실행되도록 Azure 일괄 클러스터 설정

  22. 22

    일정 프로그램을 특정 시간에 실행할 수 있습니까?

  23. 23

    cpanel-특정 시간 후에 실행할 크론 작업 설정

  24. 24

    특정 시간에 실행되도록 작업을 설정하는 방법

  25. 25

    View의 특정 부분에서 실행 시간을 측정하는 방법

  26. 26

    AppleScript-AppleScript에서 명령을 실행해야합니다.

  27. 27

    Windows에서 특정 시간에 Java 프로그램 자동 실행

  28. 28

    Windows에서 특정 시간에 Java 프로그램 자동 실행

  29. 29

    SailsJS에서 특정 시간에 서비스를 실행하는 방법

뜨겁다태그

보관