apple script open finder

#!/bin/bash
osascript <<EOD
tell application "Finder"
        activate
        make new Finder window to home
end tell
#!/bin/bash
osascript <<EOD
set appName to "iTerm"
if application appName is not running then
    tell application appName to activate
end if
tell application "iTerm"
    if (window count) is equal to 0 then
        reopen
        repeat until exists window 1
            delay 0.01
        end repeat
    end if
    activate
end tell

猜你喜欢

转载自www.cnblogs.com/Searchor/p/12103762.html
今日推荐