잠금 화면으로 이동할 수 있는 apple script.
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"
잠금 화면으로 이동할 수 있는 apple script.
do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend"
화면 보호기를 바로 실행할 수 있는 apple script.
do shell script "/System/Library/Frameworks/ScreenSaver.framework/Versions/Current/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine"
아래처럼 Finder를 통해서 실행할 수도 있지만... :)
tell application "Finder"
activate
open application file "ScreenSaverEngine.app" of folder "Resources" of folder "Current" of folder "Versions" of folder "ScreenSaver.framework" of folder "Frameworks" of folder "Library" of folder "System" of startup disk
end tell