Desk top icon

Ken Ray kray at sonsothunder.com
Fri Dec 24 17:15:44 EST 2004


On 12/24/04 12:57 PM, "Paul Salyers" <ps1 at softseven.org> wrote:

> 
> 
> 
> In VB I have the code to make a desktop icon with the click of a check box.
> By removing the check you remove the desktop icon,  Is this possible in Rev?

If you mean making a shortcut to your application (or any file for that
matter), the answer is "yes". You do:

  create alias <aliasPath> to file <fileOrAppPath>

So to create an alias to "C:\Program Files\MyApp\MyApp.exe" you'd do:

  put specialFolderPath("desktop") & "/MyApp.lnk" into tAlias
  create alias tAlias to file "C:/Program Files/MyApp/MyApp.exe"

Note that inside Rev, all paths use the "/" delimiter, regardless of
platform. Rev does understand the "native" file delimiter ("\" in Windows
and ":" in Macintosh) most of the time, but it's a good habit to get into to
start using the "/" delimiter as often as possible.

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list