AppleScript字典缺少字段如何在设置设置上迭代
在我的上一个问题中,我询问了如何更改AppleScript当前设置以使终端配置文件的showactiveProcessArgumentsIntitle
。因为您可以从另一个设置设置的其他设置中应用该PLIST字段,但缺少AppleScript中的关键字。通过将终端设置为其他配置文件红色砂,使用该选项卡的当前设置将其切换为切换,从而证明了这一点。
tell application "Terminal"
set newTab to do script "bash /Users/jredfox/Desktop/hello.sh"
set current settings of newTab to settings set "Red Sands"
end tell
#!/bin/bash
echo hello
read -p "Press ENTER to continue..."
exit
我具有XTAB
的当前设置,从那里我想在其中的每个字段上迭代。我该怎么做?我刚刚证明的applescript词典缺少可以从applescript应用的字段,但不在脚本编辑器应用程序中的字典中。因此,如何从当前设置(设置设置
对象)中迭代每个字段。似乎没有词典中的新字段。这是不可能的,因此使用重复列表不是一个选项。
In my previous question I asked how to change an AppleScript current settings to have the ShowActiveProcessArgumentsInTitle
for the terminal profile. Because you can apply that plist field from another settings set yet the keywords in AppleScript are missing. This is proved by setting the terminal to a different profile red sands with that option toggled off using the current setting of that tab.
tell application "Terminal"
set newTab to do script "bash /Users/jredfox/Desktop/hello.sh"
set current settings of newTab to settings set "Red Sands"
end tell
#!/bin/bash
echo hello
read -p "Press ENTER to continue..."
exit
I have current settings of xtab
and from there I want to iterate over every field in there. How can I do this? The AppleScript dictionary I just proved is missing a field that can be applied from AppleScript but isn't in the dictionary from the script editor app. So how do I iterate every field from current settings which is a settings set
object. There appears to be new fields which are not in the dictionary. It's not iterable so using a repeat list isn't an option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论