我有一个.qtz加载最新的.log文件的最后一行,以显示播放器当前播放的歌曲。
这是源代码,以2个.log文件为例:LastTrack.zip(阅读.zip中的说明)
它可以,但手动。您需要从查看器再次运行它以获取最后播放的歌曲。如果你不这样做,它总是显示相同的文本,即使.log是一个新的轨道。
我想知道是否有办法让它自动运行(我尝试使用LFO和Pulse没有结果并使脚本输出一些错误)。
我已尝试连续拔出LFO / Pulse和启用/禁用两个命令行工具补丁。
在“获取最新.log文件”补丁中执行此操作时,输出此错误:
引发了一个例外:
* - [NSConcreteTask terminationStatus]:任务仍在运行
0x85b9bc55: - [QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe: - [QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1: - [QCOpenGLContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 0x85be372d: - [QCView渲染:参数:] 0x84ad6c49: - [NSView _drawRect:clip:] 0x84ad58bc: - [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad4e5a: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad4e5a: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0: - [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 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 run]
在“获取.log文件的最后一行”补丁时,它输出了这个错误(我认为是相同的):
引发了一个例外:
* - [NSConcreteTask terminationStatus]:任务仍在运行
0x85b9bc55: - [QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe: - [QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1: - [QCOpenGLContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 0x85be372d: - [QCView渲染:参数:] 0x84ad6c49: - [NSView _drawRect:clip:] 0x84ad58bc: - [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad4e5a: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad4e5a: - [NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0: - [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 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 run]
提前感谢您的帮助。
答案 0 :(得分:1)
Command Line Tool
补丁仅在其输入端口更改时更新。因此,在您的情况下,您可以将定期更改的内容(例如Signal
私有补丁)附加到未使用的输入,例如“标准输入”。