Page 1 of 1

Windows 7 Alias to folder: treated as a doc

Posted: Mon Apr 23, 2018 10:39 am
by trevix
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

Re: Windows 7 Alias to folder: treated as a doc

Posted: Mon Apr 23, 2018 9:31 pm
by bwmilby
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"

Re: Windows 7 Alias to folder: treated as a doc

Posted: Wed Apr 25, 2018 1:52 am
by mwieder
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.

Re: Windows 7 Alias to folder: treated as a doc

Posted: Wed Apr 25, 2018 2:04 pm
by trevix
Bug 21230
Thanks for a new bug. :-(

Re: Windows 7 Alias to folder: treated as a doc

Posted: Wed Apr 25, 2018 4:09 pm
by bwmilby
Now we just need to see when it appeared...

Re: Windows 7 Alias to folder: treated as a doc

Posted: Wed Apr 25, 2018 4:25 pm
by FourthWorld
Confirmed here on Win10 as well, though it works as expected on Ubuntu 14.04. Thanks for filing the report.