【发布时间】:2019-02-23 18:06:28
【问题描述】:
我想在 Xcode 中使用 applescript 应用程序在终端中编写,但它不起作用。
Applescript 代码:
on ButtonTermialClicked_(sender)
tell application "Terminal" to activate
tell application "System Events"
tell application process "Terminal"
set frontmost to true
do shell script keystroke "example text"
end tell
end tell
end ButtonTermianlClicked_
提前致谢
编辑:
我要插入的是"chflags hidden"然后隐藏一个文件夹
【问题讨论】:
标签: xcode terminal applescript