This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
set plistFile to property list file "~/Library/Mail/V2/MailData/Accounts.plist" | |
set plistRoot to contents of plistFile | |
tell plistRoot to set accountsPlist to value of property list item "MailAccounts" | |
end tell | |
tell application "Mail" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Keynote" | |
repeat | |
set allSlides to slides of front document | |
set currentslide to current slide of front document | |
set nextSlideNumber to (slide number of currentslide) + 1 | |
if nextSlideNumber < (count of allSlides) then | |
set nextSlide to item nextSlideNumber of allSlides | |
repeat with aCell in cells in every table of nextSlide | |
set tmpFormula to formula of aCell | |
if tmpFormula is not missing value then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Sources/VLCAppDelegate.m b/Sources/VLCAppDelegate.m | |
index ef5f12f..e80422b 100644 | |
--- a/Sources/VLCAppDelegate.m | |
+++ b/Sources/VLCAppDelegate.m | |
@@ -278,16 +278,28 @@ | |
- (void)updateMediaList | |
{ | |
NSString *directoryPath = [self directoryPath]; | |
- NSArray *foundFiles = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:nil]; | |
- NSMutableArray *filePaths = [NSMutableArray arrayWithCapacity:[foundFiles count]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2013 Tobias Conradi | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), | |
// to deal in the Software without restriction, including without limitation | |
// the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
// and/or sell copies of the Software, and to permit persons to whom the | |
// Software is furnished to do so, subject to the following conditions: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename { | |
NSData *fileData = [NSData dataWithContentsOfFile:filename]; | |
DTAData *aDTAData = [DTAParser parseData:fileData]; | |
for (NSURL *aUrl in [aDTAData bezahlCodeURLs]) { | |
[[NSWorkspace sharedWorkspace] openURL:aUrl]; | |
} | |
BOOL success = aDTAData!=nil; | |
if (!success) { | |
// handle error | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testShowsAlertViewWhenOpenInSafariFails | |
{ | |
sut = spy(sut); | |
// given | |
[sut view]; | |
UIApplication *application = mock([UIApplication class]); | |
sut.application = application; | |
// when |