AppleScript字典缺少字段如何在设置设置上迭代

发布于 2025-02-04 04:28:59 字数 706 浏览 3 评论 0原文

在我的上一个问题中,我询问了如何更改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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文