site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version :content-transfer-encoding:message-id:content-type:to:from:subject :date:x-mailer; bh=Ackhq73/lCpIBGBLSKRBaO9o0iSBHA8NOQ/2H4Bt0Jo=; b=FPpDVcc8hJDAhRNrRDOoOIvB6Z9hskKb4l93dJfdj9dIiJ0qNLAVu1NRsi2vjbk1Ax efuKzf5IbPBy2dw4hbc4ZxFFsLQU8QmFEVzQxXZrTFl3ap/lUIjaKRUHQRAKo65vdetK yRh94Cny5QSoOhy5ig7GRa5iCRx5bJguc1Tdo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-transfer-encoding:message-id:content-type:to :from:subject:date:x-mailer; b=pINLdKZhw5mukmnfc/r+F8j9xHtEr+SI2MzT9/KBgnypVHj8QjUm4q1bLg1wUWm0GC OmB3qxt0krIWGLMGp+xaIT6vNyubJn8au9jnrq7OdCBjEZ3F8xvuD5Yc5PmHErPJSSU1 qsmHy6gWo4aOulKExju1W3iqf6Ps+yLoiyYsQ= According to the "Installer JavaScript Reference" documentation : ----------8<----------8<----------8<----------8<---------- my.target.availableKilobytes : Available space in the installation volume, in kilobytes. ----------8<----------8<----------8<----------8<---------- I've run the test on both Tiger and Leopard. Example: According to the Finder, available space on volume Leopard is 132.46 GB If you write a volume-check script like this: function checkFunction() { system.log(my.target.mountpoint+''); system.log(my.target.availableKilobytes+''); return true; } You get: Oct 11 01:24:47 Selene : JS: /Volumes/Leopard Oct 11 01:24:47 Selene : JS: 142232379392 That's a size in Bytes, not in KiloBytes. As far as I can tell: 5. PackageMaker 3 generates incorrect disk space requirements that work. SNAFU or I'm just having conversion issue at 1 AM... _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I've started playing a lot with Javascript in Installer.app recently and like the economy, I'm depressed: o If you play a bit with PackageMaker 3, you discover that the script generated by PackageMaker for Available Space on Target are incorrect because it uses a size in bytes. (Bug #6252974) o If you play with PackageMaker 2, it correctly uses a size in KB for its scripts. o If you then do some tests with Installer.app, you discover that the value returned by my.target.availableKilobytes is a size in bytes!!!!!!! 1. A bug was introduced in Installer.app on Tiger regarding the value returned by this property. 2. This bug has never been fixed in Tiger and then, for compatibility reason, we inherited this bug in Leopard. 3. The documentation has not been updated to address this situation (the date is still 07/23/2007) and warn that 'kilobytes' can mean 'bytes'. 4. PackageMaker 2 generates correct disk space requirements that do not work. This email sent to site_archiver@lists.apple.com