5
AppleScript로 Finder의 새 창을 열려면 어떻게합니까? if 문을 사용하여 창을 엽니 다. Osascript
명령을 시도했지만 구문 오류가 발생했습니다. 코드는 아래와 같습니다AppleScript를 사용하여 새 Finder 윈도우 열기
if the button returned of the result is "Sleep" then
tell app "Finder" to go to sleep
if the button returned of the result is "Open Finder" then
osascript -e 'tell application "Finder" to open new window'
else
display dialog current time
end if
; OSX 10.11.4 현재 두 가지 단점이 있습니다. (a) 흥미롭게도이 방법으로 생성 된 창은'Window' 메뉴에 나타나지 않습니다. (b) Finder의 환경 설정에 구성되어있는 것과 관계없이 새 창의 '대상'(즉, 위치)은 항상 전체 컴퓨터의 장치보기입니다. 게다가'properties {target : ...} '속성은 무시됩니다 - 시각적으로 방해가되는 _later_를 설정하는 것 이외에 목표 위치를 지정하는 방법을 알고 있습니까? – mklement0