From: Kent Sutherland Date: Thu, 12 Feb 2004 12:49:52 +0000 (+0000) Subject: Scripts now run when the player switches to no song playing. X-Git-Tag: v1.3~30 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/316e5f91294f0bbe3537cb7935546baa111ddfdc Scripts now run when the player switches to no song playing. --- diff --git a/MainController.m b/MainController.m index 56f568f..bf3bda3 100755 --- a/MainController.m +++ b/MainController.m @@ -330,7 +330,7 @@ static MainController *sharedController; if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) { ITDebugLog(@"The song changed."); - if ([df boolForKey:@"runScripts"] && [[self currentRemote] currentSongTitle]) { + if ([df boolForKey:@"runScripts"]) { NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]]; NSEnumerator *scriptsEnum = [scripts objectEnumerator]; NSString *nextScript;