如果你不想担心创建一个  竞争条件  不得不关闭  UE4Editor  在关闭之前,如在另一个答案中所提到的那样,有一个很好的app叫  EventScripts ,价格为3.99美元  应用商店 ,你可以用来  触发   AppleScript的   脚本  和或  贝壳   脚本  什么时候  某些   事件  是  触发 。 
 这是一个例子  AppleScript的   脚本  那将  隐藏/显示  该  码头  什么时候  UE4Editor   启动/退出 : 
on run eventArgs
    set theAppName to applicationName in eventArgs
    set theTrigger to trigger in eventArgs
    if theTrigger is "Application launched" and theAppName is "UE4Editor" then
        hideDock(true)
    else if theTrigger is "Application quit" and theAppName is "UE4Editor" then
        hideDock(false)
    end if
end run
on hideDock(b)
    tell application "System Events"
        set autohide of dock preferences to b
    end tell
end hideDock
 在  脚本编辑器 ,保存以上  AppleScript的   码  例如,  UE4Editor  -  On Open和Close.scpt  在  〜/ Library / Application Scripts / net.mousedown.EventScripts / ,(安装EventScripts后)。 
 现在进来  EventScripts ,添加相同  脚本  两次,同时设置  事件  对于  一  至  申请推出  和  其他  至  申请退出 。 
 现在,当  UE4Editor  发射,  码头  是隐藏的,什么时候  UE4Editor  退出  码头  没有隐藏。 

 EventScripts  有一长串的  事件  它可以  触发  一个脚本。请查看以下链接以获取更多信息: 
 注意:我不是EventScripts的开发者,只是一个满意的客户。