Is it possible to use standard JavaScript methods with Installer classes/objects?
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=X30d0SB+FqLJjl4ZSFepR6TKC0CyALnN4nXru/Skm+k=; b=VuxpFPfCvoS7tIP7YtRh5ahywEC/wvFgmKOkNHlK5eJdc5pTaYkseMs1+50scOIGkw 0Vrjazd3pvuaLt3+XPn8wggqsXc3t0H7qKB7KCICq74IScV52XpcptlGnSMvr9x/6WCi tUcovU81Y2vuUanusTMHiEkKIRJ/x30HXRN7M= 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=HqWA0lRv7m9DtGu2b63SbaNQ7PCxZ5sZfxixUbG9L+MoTN/4LPyX78qo769E4bISfO Pz+bnum5WzNiNfAqR0oR1OhAISp6zojBvpgWPOtAswvEaRNEQzr9uv2F0pCgTk5Wnacg /e6FVSHF2U1grTXKalNINe0+CB5UlAMFJqkQ4= system.run.apply(null,tArrayOfArguments) allow-external-scripts is set to "yes" I tried multiple variations such as: system.run.apply(system,tArrayOfArguments) run.apply(system,tArrayOfArguments) with no success. Is it possible to do this? _______________________________________________ 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 would like to execute the system.run function by passing it an array of arguments instead of a variable list of arguments.
From what I gather in the JavaScript reference book from O'Reilly, it would look something like this: Unfortunately, the JavaScript runtime is not happy with this and trigger an exception (on Tiger and Leopard): Mar 19 00:02:44 Selene : JavaScript error "Value undefined (result of expression system.run.apply) is not object." while running "__choice_function1" Mar 19 00:02:44 Selene : __choice_function1 returned error: Value undefined (result of expression system.run.apply) is not object. I looked at the release notes for Installer (on Tiger), the Installer JavaScript Reference documentation but I'm still clueless. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev