<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>TITLE</title>
    <product id="com.apple.iWork.Pages" version="6.3"/>
    <options customize="never" require-scripts="true" hostArchitectures="x86_64,i386" productKBytes="230862"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.apple.pkg.Pages6"/>
        </line>
    </choices-outline>
    <choice id="default" title="TITLE"/>
    <choice id="com.apple.pkg.Pages6" visible="false">
        <pkg-ref id="com.apple.pkg.Pages6">#Pages6.pkg</pkg-ref>
    </choice>
    <pkg-ref id="com.apple.pkg.Pages6" installKBytes="453077" version="6.3.0.0.1.1505167966">
        <must-close>
            <app id="com.apple.iWork.Pages"/>
        </must-close>
        <relocate search-id="find-Pages">
            <bundle id="com.apple.iWork.Pages"/>
        </relocate>
    </pkg-ref>
    <volume-check>
        <allowed-os-versions>
            <os-version min="10.12"/>
        </allowed-os-versions>
    </volume-check>
    <locator>
        <search id="find-Pages-by-id" type="component">
            <bundle CFBundleIdentifier="com.apple.iWork.Pages" CFBundleShortVersionString="6.3"/>
        </search>
        <search id="find-Pages" type="script" script="findPages()">
            <script>
				function findPages()
				{
					var s = my.search.results[ 'find-Pages-by-id' ];
					if ( ! s || s.length == 0 )
					   return false;

					var defaultPath = s[ 0 ];
					var re = new RegExp( "Applications/iWork '(06|08|09)/Pages.app$" );
					if ( re.test( defaultPath ) )
						s.unshift( "/Applications/Pages.app" );

					return s;
				}
			</script>
        </search>
    </locator>
    <script/>
</installer-gui-script>