2
我想要打开一个Xcode项目并使用applescript
在项目导航器中选择Xcode项目(.xcodeproj)。 我尝试了以下Finder
的代码片段,并且Iam能够选择该文件。使用AppleScript在Xcode中选择文件
tell application "Finder" to select file "README.txt" of folder "Image" of folder "Downloads" of home
我愿做相同的Xcode.I尝试下面的代码片段,但我不能在Xcode项目选择文件navigator.How在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