Skip to content

Instantly share code, notes, and snippets.

@ksundong
Created March 27, 2023 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksundong/24d07b59cb0608317548e5937d39f37b to your computer and use it in GitHub Desktop.
Save ksundong/24d07b59cb0608317548e5937d39f37b to your computer and use it in GitHub Desktop.
현재 시간 입력해주는 applescript

Mac Automator를 이용한 현재 시간 입력 기능

  1. Automator 실행
  2. 빠른 동작 선택
  3. AppleScript 실행 검색
  4. AppleScript 실행 더블클릭
  5. 위의 스크립트 코드 입력
  6. 저장(이름 자유롭게 지정)
  7. 시스템 설정
  8. 키보드
  9. 키보드 단축키
  10. 서비스
  11. 일반
  12. 단축키 지정 후 사용

굿

on run {input, parameters}
set theTime to text -8 thru -4 of ((current date) as «class isot» as string)
set wrappedTime to "(" & theTime & ")"
tell application "System Events" to keystroke wrappedTime
end run
@ksundong
Copy link
Author

ksundong commented Apr 1, 2023

image

여기서 해당 프로그램을 허용해줘야 함

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment