Skip to content

Instantly share code, notes, and snippets.

The impact of Apple's continued lack of support for upgrade pricing has been increased by an apparent effort on Apple's part to enforce 3rd party developers trying to accommodate upgrade pricing through their own means:
http://www.omnigroup.com/blog/entry/update-no-upgrade-pricing-for-mac-app-store-purchases
Most of us Mac developers are loyal Apple fans who would like to support the Mac App Store and keep our customers who purchased on the Mac App Store within that system. By not supporting an upgrade mechanism for these customers Apple leaves us in a position where we're forced to either treat Mac App Store customers as 2nd class customers or to forego across the board the expected compensation for major upgrades to our applications.
#import <Cocoa/Cocoa.h>
BOOL VerifyAppStoreReceipt();
BOOL VerifyAppStoreReceiptData(NSData *data);
NSURL *BackupReceiptURL();
void BackupAppStoreReceipt();
NSData *MACAddressData();
NSDictionary *DictionaryFromAppStoreReceipt(NSData *fullData);
@redsweater
redsweater / SwitchProfile
Created October 12, 2011 15:35
If you use ScanSnap, you can have GUI Scripting automate the process of switching among your scan profiles ...
-- Launches ScanSnap Manager, if necessary. Opens the ScanSnap Manager settings window,
-- changes to named profile, applies changes, and closes the window
-- Example:
SwitchToProfile("Standard")
on SaveActiveApplication()
return application
end SaveActiveApplication
on OpenOptionsWindow()
@redsweater
redsweater / gist:1266047
Created October 5, 2011 23:28
If you ship Growl framework in a Mac App Store target… add this build phase to strip PPC
#!/bin/sh
echo "Stripping PPC from Growl framework..."
cd "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/Growl.framework/Versions/Current"
lipo ./Growl -verify_arch ppc
if test $? -ne 1 ; then
lipo ./Growl -remove ppc -output ./Growl
fi