alias to OS X app?
Mark Talluto
userev at canelasoftware.com
Thu Feb 23 16:30:58 EST 2006
On Feb 23, 2006, at 1:24 PM, Richard Gaskin wrote:
> Apparently the "create alias" command can only be used on files,
> not folder.
>
> So how does one create an alias to a .app bundle?
>
Hi Richard,
For my installer I use the following:
--IF THE ALIAS ALREADY EXISTS THEN DELETE IT FIRST
--AS THE OLD ONE WILL BREAK THE INSTALLER
if there is a folder tAliasLoc then
revDeleteFolder tAliasLoc
end if
put specialFolderPath("desktop") into tAliasLoc
put "/" & quote & thisLine & quote after tAliasLoc
put tDestLoc into tSourceOfAlias
put "/" & quote & thisLine & ".app" & quote after
tSourceOfAlias
put "ln -s" && tSourceOfAlias && tAliasLoc into tCmd
put shell (tCmd)
Mark Talluto
--
CANELA Software
http://www.canelasoftware.com
More information about the use-livecode
mailing list