Xcode 调试 AppleScript [英] Xcode debugging AppleScript
问题描述
Xcode 显然有 AppleScript 调试工具:
Xcode has apparently AppleScript debugging facilities :
- 可以放置断点
- 可执行选项提到 AppleScript Debugger
但我不知道如何运行 &调试脚本...
But I could not figure how to Run & Debug script...
尝试设置调用 osascript 的自定义可执行文件,并将脚本作为参数,未命中断点.
Tried setting up a custom executable calling osascript with script as argument, breakpoints are not hit.
有什么想法吗?
推荐答案
回答自己关闭这个...
Answering to myself to close this one...
根据我在网上的发现,基于 Cocoa AppleScript 的应用程序/AppleScript Studio 正在被 Apple 抛弃.最近版本的 Xcode (v3.2+) 中的所有 Applescript 引用都只是过去的残余,不应再工作.从我所见,Xcode 4 中没有对 AppleScript 的引用......(除了文件关联/语法着色)
From what I have found on the web, Cocoa AppleScript based applications / AppleScript Studio are being abandoned by Apple. All Applescript references in recent versions of Xcode (v3.2+) would just be remainings from that past and should not be working anymore. And from what I see, there is no reference to AppleScript in Xcode 4... (except maybe file association/syntax coloring)
所以我看到的调试 AppleScript 的唯一选择,不使用第三方工具,是使用(无效)旧的调试记录技术:logxxx
.
So the only option I see to debug AppleScript, without using third party tools, is using that (uneffective) old debug-logging-technique: log xxx
.
这篇关于Xcode 调试 AppleScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!