property findtype : quoted form of "kMDItemContentType = \"com.apple.application-bundle\""
set simulatorFolder to POSIX path of (path to application support folder from user domain) & "iPhone Simulator/"
set appFiles to paragraphs of (do shell script "mdfind -onlyin " & quoted form of simulatorFolder & " " & findtype)
if appFiles is not {} then
set mostRecentApp to item 1 of appFiles
tell application "Finder" to reveal ((POSIX file mostRecentApp) as alias)
tell application "Finder" to activate
end if
粘贴到苹果脚本编辑器,并导出为一个 Mac 应用程序。然后你就可以在需要打开沙箱中的 Finder 窗口时运行这个应用程序。代码由 MacScripter 的 StefanK 提供。