0

我有一个 .qtz 加载最新的 .log 文件的最后一行,以显示播放器当前播放的歌曲。

以下是源代码,以 2 个 .log 文件为例:LastTrack.zip(阅读 .zip 中的说明)

它工作,但手动。您需要从查看器中再次运行它以获取最后播放的歌曲。如果你不这样做,它总是显示相同的文本,即使在 .log 中是一个新轨道。

我想知道是否有办法让它自动工作(我尝试使用 LFO 和 Pulse 没有结果,并使脚本输出一些错误)。

我已经尝试连续手动拔掉 LFO/Pulse 和 Enable/Disable 两个命令行工具补丁。

在“获取最新的 .log 文件”补丁中执行此操作时,它输出此错误:

提出了一个例外:

* -[NSConcreteTask 终止状态]:任务仍在运行

0x85b9bc55:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe:-[QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 0x85be372d:-[QCView 渲染:arguments:] [的NSView _drawRect:剪辑:] 0x84ad58bc: - [的NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [的NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [的NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:冠捷:] 0x84ad4e5a: - [的NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect: rectIsVisibleRectForView:topView:] 0x84ad4e5a:-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0:- [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:冠捷:] 0x84ad0362: - [的NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 0x84a49b9a: - [的NSView displayIfNeeded] 0x84a44a46:_handleWindowNeedsDisplay 0x85471b37:__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8 : BlockUntilNextEventMatchingListInMode 0x84a19e64: _DPSNextEvent 0x84a197a9:-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 0x849df48b:-[NSApplication 运行]__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9: - [的NSApplication nextEventMatchingMask:untilDate:inMode:出队:] 0x849df48b: - [运行的NSApplication]__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9: - [的NSApplication nextEventMatchingMask:untilDate:inMode:出队:] 0x849df48b: - [运行的NSApplication]

在“获取 .log 文件的最后一行”补丁中执行此操作时,它输出了此错误(我认为是相同的):

提出了一个例外:

* -[NSConcreteTask 终止状态]:任务仍在运行

0x85b9bc55:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe:-[QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 0x85be372d:-[QCView 渲染:arguments:] [的NSView _drawRect:剪辑:] 0x84ad58bc: - [的NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [的NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [的NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:冠捷:] 0x84ad4e5a: - [的NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect: rectIsVisibleRectForView:topView:] 0x84ad4e5a:-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0:- [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:冠捷:] 0x84ad0362: - [的NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 0x84a49b9a: - [的NSView displayIfNeeded] 0x84a44a46:_handleWindowNeedsDisplay 0x85471b37:__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8 : BlockUntilNextEventMatchingListInMode 0x84a19e64: _DPSNextEvent 0x84a197a9:-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 0x849df48b:-[NSApplication 运行]__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9: - [的NSApplication nextEventMatchingMask:untilDate:inMode:出队:] 0x849df48b: - [运行的NSApplication]__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9: - [的NSApplication nextEventMatchingMask:untilDate:inMode:出队:] 0x849df48b: - [运行的NSApplication]

预先感谢您的帮助。

4

1 回答 1

1

补丁仅在其Command Line Tool输入端口更改时更新。因此,在您的情况下,您可以将定期更改的内容(Signal例如私有补丁)附加到未使用的输入,例如“标准输入”。

于 2010-11-09T20:09:15.260 回答