Getting a stack to create a shortcut

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Getting a stack to create a shortcut

Post by magice »

I am working on an installer app. I have figured out how to make it create the folders in the designated place, and place my executable file where i need it to be. What i haven't figured out, is how to get it to create shortcuts. I could save those shortcuts as a custom property the same way I did the executable, but the problem with that is that if the end user changes the destination directory the shortcuts won't work. How can I get my stack to interact with the OS and create shortcuts?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting a stack to create a shortcut

Post by Klaus »

Hi magice,

check "alias" in the docs (Rev dictionary), that is what you are looking for!

And remember to add ".lnk" to the alias/shortcut file on Windows, won't work otherwise.
Name the shortcut whatever you like on a Mac however :D


Best

Klaus
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Getting a stack to create a shortcut

Post by magice »

Thank you Klaus. Once again you have pointed me exactly where i needed to look. Also Thank you for not giving me too much info. I learn more when I have to experiment to make it work. :D
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting a stack to create a shortcut

Post by Klaus »

Hi Magice,

my lazyness = your pleasure
GREAT! :D
Post Reply