Version 2 of MaxOS X shorcuts

Updated 2005-07-31 10:08:03

* Anyone knows how to create OSX file and desktop shortcuts using Tcl? I believe they are called "alias"

Lars H: You might get by with creating a symbolic link, but proper aliases may be better as they do provide some additional functionality (for example, the target can often be found even if the folder it's in has been moved). Examining Alpha's Mac Menu [L1 ] recovers the following TclAE command for telling the Finder to create the alias:

  tclAE::send 'MACS' core crel kocl type(alia)\
    insh [tclAE::build::foldername $where]\
    "to  " [tclAE::build::filename $sourceFile]

Category?