<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options customize="never" hostArchitectures="ppc,i386" rootVolumeOnly="true"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	my.result.message = system.localizedString('ERROR_0');
	if (!PlistCheck0("/") || !Not1("/") || !LogicalAnd3("/") || !FileCheck6("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function PlistCheck0(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.7.5') &lt; 0) {
		return false;
	}
	return true;
}
function Not1(prefix) {
	if (!(PlistCheck2(prefix))) {
		return true;
	}
	return false;
}
function PlistCheck2(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_2');
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.8') &lt; 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.8.3') >= 0) {
		return false;
	}
	return true;
}
function LogicalAnd3(prefix) {
	if (BundleCheck4(prefix) &amp;&amp; BundleCheck5(prefix)) {
		return true;
	}
	return false;
}
function BundleCheck4(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.1.0') &lt; 0) {
		return false;
	}
	return true;
}
function BundleCheck5(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_4');
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.4.3.0') > 0) {
		return false;
	}
	return true;
}
function FileCheck6(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_5');
	if (system.files.fileExistsAtPath(prefix + '/Applications/iPhoto.app/Contents/_MASReceipt/receipt') == 0) {
		return true;
	}
	return false;
}
function BundleCheck7(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.1.0') &lt; 0) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.4.3.0') >= 0) {
		return false;
	}
	return true;
}
</script>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="SoftwareUpdate">
        <line choice="su"/>
    </choices-outline>
    <choices-outline>
        <line choice="su"/>
    </choices-outline>
    <choice id="su" title="SU_TITLE" versStr="SU_VERS" description="SU_DESCRIPTION" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="iPhotoUpdate" visible="BundleCheck7('/')">
        <pkg-ref id="iPhotoUpdate" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.4.3Update" active="LogicalAnd3('/')">iPhoto9.4.3Update.pkg</pkg-ref>
        <pkg-ref id="iPhotoContentUpdate" auth="Root" packageIdentifier="com.apple.pkg.iPhoto9.4.3ContentUpdate" active="LogicalAnd3('/')">iPhoto9.4.3ContentUpdate.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie iPhoto";
"SU_VERS" = "9.4.3";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich i serwerów";
"SU_DESCRIPTION" = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <title></title>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="1187.34">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'; min-height: 13.0px}
    p.p3 {margin: 0.0px 0.0px 12.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    li.li2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'; min-height: 13.0px}
    span.s1 {text-decoration: underline ; color: #0000ee}
    span.Apple-tab-span {white-space:pre}
    ul.ul1 {list-style-type: disc}
  </style>
</head>
<body>
<p class="p3"><b>Co nowego w wersji 9.4.3</b></p>
<ul class="ul1">
	<li class="li1">Zdjęcia można teraz usuwać z Mojego strumienia zdjęć, przeciągając je do Kosza</li>
	<li class="li1">Zdjęcia można teraz eksportować ze strumienia zdjęć, korzystając z polecenia Eksportuj w menu Plik</li>
	<li class="li1">Zdjęcia RAW zaimportowane ręcznie z Mojego strumienia zdjęć można teraz edytować </li>
	<li class="li1">Usunięto problem, który mógł powodować wyświetlanie ręcznie obróconych zdjęć jako nieobróconych po udostępnieniu w strumieniu zdjęć</li>
	<li class="li1">Rozwiązano problem, który mógł powodować nieoczekiwane kończenie działania iPhoto przy synchronizacji z Facebookiem</li>
	<li class="li1">Rozwiązano problem, który mógł powodować wyświetlanie tekstu kalendarza nieprawidłową czcionką i anulowanie zamówienia</li>
	<li class="li1">Usunięto problem, który mógł powodować nieprawidłową liczbę stron w książkach po zmianie układu rozkładówek dwustronicowych</li>
	<li class="li1">Zawiera poprawki w zakresie stabilności</li>
</ul>
</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='iPhotoContentUpdate' installKBytes='180046' version='9.4.3.0.1.1263389684'/>
	<pkg-ref id='iPhotoUpdate' installKBytes='595086' version='9.4.3.0.1.1263389684'/>
</installer-gui-script>