【发布时间】:2014-05-15 14:44:50
【问题描述】:
我想打开一个 Xcode 项目并使用 applescript 在项目导航器中选择 Xcode 项目 (.xcodeproj)。
我为Finder尝试了以下代码 sn-p 并且我能够选择文件。
tell application "Finder" to select file "README.txt" of folder "Image" of folder "Downloads" of home
我想在 Xcode 中做同样的事情。我尝试了以下 sn-ps,但我无法在 Xcode 项目导航器中选择文件。如何在 Xcode 中使用applescript 选择文件
tell application "Xcode"
open file "Users:xxxxx:Downloads:Project1:Project1.xcodeproj"
tell application "System Events" to tell process "Xcode"
select file "README.txt" of folder "Project1" of folder "Downloads" of home
end tell
end tell
tell application "Xcode" to select file "README.txt" of folder "Project1" of folder "Downloads" of home
【问题讨论】:
标签: ios xcode5 applescript