File.macAlias
Dans cet exemple, on crée un alias mac pour le logiciel (AppleCD Audio Player) installé en local.
xpiSrc = "Miscellaneous Program"; var vi = "1.1.1.1"; initInstall( "Macintosh Alias", "misc", vi, 0); f = getFolder("Program"); g = getFolder("Mac Desktop"); addFile( "filemacalias", "2.2.2.2", xpiSrc, f, xpiSrc, true); err = File.macAlias(f, xpiSrc, g, xpiSrc + " alias"); logComment("File.macAlias returns: " + err); if (0 == getLastError()) performInstall(); else cancelInstall();
Interwiki Languages Links