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
-
trevix
- Posts: 1077
- Joined: Sat Feb 24, 2007 11:25 pm
-
Contact:
Post
by trevix » Mon Apr 23, 2018 10:39 am
Windows 7, LC 8.1.10
I am having a problem creating an alias to a
folder.
The alias is created ok, but the system considers it to be an alias to a
document.
This is the script:
Code: Select all
put specialfolderpath("desktop") & "/" & "MyFolder2" & ".lnk" into tAliasPath
put specialfolderpath("desktop") & "/" & "MyFolder" into tOriginalPath
create alias tAliasPath to folder tOriginalPath
--just checking
put the aliasReference of tAliasPath into tRef
if tRef is empty then
answer "it's not a alias"
else
put tRef
end if
What am I doing wrong?
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
bwmilby
- Posts: 462
- Joined: Wed Jun 07, 2017 5:37 am
-
Contact:
Post
by bwmilby » Mon Apr 23, 2018 9:31 pm
Do you need a trailing slash in the original path?
Edit:
Nope... is it a bug? I just tried on Win10 and get the same thing... the link type is "file" instead of "folder"
-
mwieder
- VIP Livecode Opensource Backer

- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
-
Contact:
Post
by mwieder » Wed Apr 25, 2018 1:52 am
Sounds like it's a bug. Does the correct thing here on linux, so my guess is the engine code for creating aliases on Windows is only creating file aliases.
-
trevix
- Posts: 1077
- Joined: Sat Feb 24, 2007 11:25 pm
-
Contact:
Post
by trevix » Wed Apr 25, 2018 2:04 pm
Bug 21230
Thanks for a new bug.

Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
-
bwmilby
- Posts: 462
- Joined: Wed Jun 07, 2017 5:37 am
-
Contact:
Post
by bwmilby » Wed Apr 25, 2018 4:09 pm
Now we just need to see when it appeared...
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10046
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Wed Apr 25, 2018 4:25 pm
Confirmed here on Win10 as well, though it works as expected on Ubuntu 14.04. Thanks for filing the report.