시스템 시동시, 로그인 아이템이 많으면 로그인 시간도 그 만큼 길어져서 컴퓨터를 바로 사용할 수 없게 되죠. 이런 현상을 조금이나마 완화해주기 위한 AppleScript가 소개되었는데, 로그인 아이템을 순차적으로 약간의 시간차를 두어서 실행시켜준답니다.
아래의 코드 예를 보면, 첫줄의 name: 칸의 따옴표 사이에 로그인시 실행될 프로그램 이름이 들어가고, vis: 칸에는 실행시 해당 어플리케이션을 숨겨둘지를 true/false로 결정합니다.
set theAppList to {{name:"Things", vis:false}, {name:"Mail", vis:true}, {name:"Quicksilver", vis:false}}
set theDelay to 1
repeat with currentApp in theAppList
    tell application (name of currentApp) to launch
    delay theDelay
    tell application "Finder"
        try
            open application (name of currentApp) with properties {visible:(vis of currentApp)}
        on error
            tell application "System Events"
                try
                    if background only of process (name of currentApp) is false then
                        set visible of process (name of currentApp) to (vis of currentApp)
                    end if
                end try
            end tell
        end try
    end tell
end repeat사용법은 AppleScript Editor(Script Editor)를 열어서 위의 코드를 상황에 맞게 입력/수정한 후, Application 형태로 저장합니다. 그리고 이렇게 저장한 어플리케이션을 환경 설정에 있는 계정 항목에서 로그인 아이템으로 추가합니다. 대신 다른 로그인 아이템들은 삭제해주어야 겠지요.
이렇게 하면, 다음 로그인 때부터는 AppleScript가 여러 로그인 아이템들을 순차적으로 시간차를 두어 자동 실행시켜 주면서, 로그인 후 컴퓨터 반응 시간을 약간이나마 빨라지게 할 수 있다네요.
 이곳은 Mac 관련 유용한 정보들을 모아 많은 분과 함께 공유하기 위해 운영되고 있습니다. 잠깐 들르시는 나그네라도 자유롭게 글을 올리시고 의견을 나누실 수 있습니다.
 이곳은 Mac 관련 유용한 정보들을 모아 많은 분과 함께 공유하기 위해 운영되고 있습니다. 잠깐 들르시는 나그네라도 자유롭게 글을 올리시고 의견을 나누실 수 있습니다.