본문 바로가기

애플스크립트

How to Run Fast Forward or Fast Backward on QuickTime Player with AppleScript property step : 10if application "QuickTime Player" is running thentell application "QuickTime Player"set playerPosition to (current time of front document) + stepset movieDuration to duration of front documentif (front document is playing) thenset isPlaying to trueelseset isPlaying to falseend ifif (playerPosition ≥ movieDuration) thenif front document is playing thenstop front documentend ifse.. 더보기
애플 스크립트를 이용한 이메일 보내기 with 첨부파일. Sending an Email with attachments using AppleScript tell application "Mail" set theSubject to "제목을 넣어준다." -- the subject set theContent to "본문에 들어갈 내용을 적는다" -- the content set theAddress to "수신인의 메일 주소를 적는다" -- the receiver -- set theSignatureName to "시그너쳐 이름을 넣어준다." -- the signature name set theAttachmentFile to "SH:Users:SH:Desktop:ScreenShots:1.png" -- 첨부파일의 경로를 설정한다. set msg to make new outg.. 더보기
[MAC TIP] Key Press Action with AppleScript This is an AppleScript to act like a keyboard action. Run a script like this in AppleScript Editor: activate application "Firefox" repeat 100times tell application "System Events" to keystroke "a" using command down delay (random number from 0.5 to 5) end repeat - More examples:tell application "System Events" key code 123 using {shift down, command down} -- shift-command-left endset old to (pat.. 더보기
[Automator] Automator 를 이용해서 네이버 사전 활용(만들기)하기 맥을 사용하면 생산성을 끌어 올릴수 있는 방법이 많이 있는데, 그 중 하나인 오토메이터를 활용하는 방법을 소개해 드리려고 합니다. 이번에는 오토메이터(automator)로 손쉽게 네이버 사전을 만들어 보겠습니다. 물론 맥에 내장된 사전이 있어 바로 사용할 수 있는게 있지만, 여러가지를 동시에 찾아가면서 공부(?)해야 하는 분들에게 이 방법 또한 도움이 되리라 봅니다. 자~ 그럼 각설하고 시작하겠습니다. 1. 우선 Launchpad 안에 있는 automator(오토메이터)를 실행해 줍니다. 2. 여기에서 서비스(Service)를 선택합니다. 3. 라이브러리에서 "Run AppleScript(애플스크립트 실행)"를 찾아 오른쪽으로 끌어 넣습니다. 4. 아래의 스크립트 내용을 복사해서 붙여 넣습니다. on r.. 더보기
[Applescript] How to open a new tab in chrome, safari using applescript Applescript 를 사용하여 특정 사이트를 새 탭에서 여는 기본 스크립트이다. on run {input, parameters} tell application "Google Chrome" set myTab to make new tab at end of tabs of window 1 set URL of myTab to "http://creativeworks.tistory.com/" end tell end run 더보기
[Applescript] How to detect page loading status using applescript and chrome This is far from rocket science but I haven’t seen it posted so I’m going to put it here for posterity. This is how you can detect if a page is loaded in chrome with applescript. This is a subroutine, so you can put it at the end of your program and call it with this line checkForLoading() Ok, here’s the subroutine. on CheckForLoading() # checks chrome to see if the frontmost tab is loaded tell .. 더보기