NSError *error = nil;
NSString *path = [NSString stringWithFormat:@"%@/Library/Safari/History.plist", NSHomeDirectory()];
uint64_t fileSize = [[[NSFileManager defaultManager] attributesOfItemAtPath:path error:&error] fileSize];
if (error != nil) {
NSLog(@"Error: %@", [error localizedDescription]);
} else {
NSLog(@"File Size: %.0llu", fileSize);
}