Run script on suspend/resume in Mac OS X

John Fouhy

Is there any way to automatically run a script on suspend/resume (i.e. when I close the lid, or after opening it) under Mac OS X 10.4?

rampion

Maybe try Sleepwatcher. Can't vouch for it, but found it after following Kevin's tips:

SleepWatcher 2.0.5 (now compatible with Mac OS X 10.5 “Leopard”) is a command line tool (daemon) for Mac OS X that monitors sleep, wakeup and idleness of a Mac. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up or after a given time without user interaction. It also can send the Mac to sleep mode or retrieve the time since last user activity.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to run a script at login/logout in OS X?

분류에서Dev

Run headless Google Chrome on Mac OS X on startup

분류에서Dev

Writing a Shell Script to alert me on Mac OS X

분류에서Dev

Mac OS X의 Python

분류에서Dev

Mac OS X sed regexp

분류에서Dev

Mac OS X sed regexp

분류에서Dev

How can you automatically run a script after connecting to a VPN on OS X?

분류에서Dev

Get the name of the Mac OS application to use in script

분류에서Dev

Mac OS X에 Tomcat 설치

분류에서Dev

Mac OS X 절전 모드

분류에서Dev

Take photos in rapid succession on Mac OS X

분류에서Dev

Take photos in rapid succession on Mac OS X

분류에서Dev

Mac OS X repeat software install failure

분류에서Dev

Mac OS X Linux Unix version

분류에서Dev

Mac OS X Terminal - Naming SSH Connections?

분류에서Dev

Perforce Server connection error in Mac OS X

분류에서Dev

Mac OS X Dock 교체

분류에서Dev

Getting Error message in MAC OS X terminal

분류에서Dev

What is an equivalent of the adduser command on Mac OS X?

분류에서Dev

Mac OS X Automator의 대안?

분류에서Dev

Mac OS X Mavericks 용 Mono

분류에서Dev

Mac OS X의 NASM 오류

분류에서Dev

Mac OS X 문제의 Dragonegg

분류에서Dev

Mac OS X 문제의 Dragonegg

분류에서Dev

Not able to modify $PATH on Mac OS X Yosemite

분류에서Dev

How to correct malfunctioning Terminal in Mac OS X?

분류에서Dev

Organizing the Mac OS X Applications directory

분류에서Dev

Mac OS X의 mdfind 명령

분류에서Dev

Java Mac OS X 제거