Scripts now run when the player switches to no song playing.
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 12 Feb 2004 12:49:52 +0000 (12:49 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 12 Feb 2004 12:49:52 +0000 (12:49 +0000)
MainController.m

index 56f568f..bf3bda3 100755 (executable)
@@ -330,7 +330,7 @@ static MainController *sharedController;
     if ( [self songChanged] && (timerUpdating != YES) && (playerRunningState == ITMTRemotePlayerRunning) ) {
         ITDebugLog(@"The song changed.");
         
     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;
             NSArray *scripts = [[NSFileManager defaultManager] directoryContentsAtPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/MenuTunes/Scripts"]];
             NSEnumerator *scriptsEnum = [scripts objectEnumerator];
             NSString *nextScript;