File.macAlias

File.macAlias

In this example, a mac alias is created for software (AppleCD Audio Player) that is installed locally.

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();

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, trevorh, Fredchat, Rod Whiteley
 Last updated by: Sheppy,