From 3aa646fcc087ac10c7e1f646a114a28519c47830 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Wed, 25 Feb 2004 02:06:04 +0000 Subject: [PATCH] Added more AppleScript ITDebug logs --- MainController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MainController.m b/MainController.m index 6f14518..c889234 100755 --- a/MainController.m +++ b/MainController.m @@ -348,9 +348,11 @@ static MainController *sharedController; NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]]; NSEnumerator *scriptsEnum = [scripts objectEnumerator]; NSString *nextScript; + ITDebugLog(@"Running AppleScripts for song change."); while ( (nextScript = [scriptsEnum nextObject]) ) { NSDictionary *error; NSAppleScript *currentScript = [[NSAppleScript alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"] stringByAppendingPathComponent:nextScript]] error:&error]; + NSLog(@"Running script: %@", nextScript); if (!currentScript || ![currentScript executeAndReturnError:nil]) { ITDebugLog(@"Error running script %@.", nextScript); } @@ -1230,4 +1232,4 @@ static MainController *sharedController; [super dealloc]; } -@end \ No newline at end of file +@end -- 2.20.1