]> granicus.if.org Git - handbrake/commitdiff
MacGui: Send to MetaX upon completion preference initial implementation.
authordynaflash <dynaflashtech@gmail.com>
Fri, 3 Aug 2007 14:54:51 +0000 (14:54 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Fri, 3 Aug 2007 14:54:51 +0000 (14:54 +0000)
- Thanks Rodney (MetaX dev)!
- Default is off
- Upon completion of encode, if checked in prefs, HB will send the finished movie to MetaX for meta tagging.
- currently only sends a single encode. If using the queue, will send the last job in the queue only.
- In talking to Rodney  some work might have to be done on the MetaX side if we ever want to be able to send an entire queue to MetaX all at once.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@785 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm
macosx/English.lproj/Preferences.nib/keyedobjects.nib

index dfc944f50aadb202b8e9f77a60659c2937f7fe4c..bd545229651b030b6bd684d5e8c8469458584ec4 100644 (file)
@@ -841,6 +841,15 @@ list = hb_get_titles( fHandle );
                [self EnableUI: YES]; 
                 }
                        
+                                               // MetaX insertion via AppleScript
+                       if([[NSUserDefaults standardUserDefaults] boolForKey: @"sendToMetaX"] == YES)
+                       {
+                       NSAppleScript *myScript = [[NSAppleScript alloc] initWithSource: [NSString stringWithFormat: @"%@%@%@", @"tell application \"MetaX\" to open (POSIX file \"", [fDstFile2Field stringValue], @"\")"]];
+                       [myScript executeAndReturnError: nil];
+                       [myScript release];
+                       }
+                       
+                       
                        }
                        else
                        {
@@ -998,7 +1007,7 @@ list = hb_get_titles( fHandle );
                resumeOrPause = NO;
                /* we record the current source name here in case the next scan is unsuccessful,
                                then we can replace the scan progress with the old name if necessary */
-                       sourceDisplayName = [NSString stringWithFormat:[fSrcDVD2Field stringValue]];
+       sourceDisplayName = [NSString stringWithFormat:[fSrcDVD2Field stringValue]];
        
        /* if its the initial successful scan after awakeFromNib */
           if (currentSuccessfulScanCount == 1)
index 8a019d9c75044843320be67d40e515ab1a959e64..26ec4f322f86678a9ad1999a6e473285ca622fcb 100644 (file)
Binary files a/macosx/English.lproj/Preferences.nib/keyedobjects.nib and b/macosx/English.lproj/Preferences.nib/keyedobjects.nib differ