Windows 7 Alias to folder: treated as a doc

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: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
trevix
Posts: 389
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Windows 7 Alias to folder: treated as a doc

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

bwmilby
Posts: 212
Joined: Wed Jun 07, 2017 5:37 am
Location: New Orleans, LA
Contact:

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

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"
Brian Milby

Script Tracker https://github.com/bwmilby/lc-misc/tree/master/ScriptTracker

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2695
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

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

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: 389
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

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

Post by trevix » Wed Apr 25, 2018 2:04 pm

Bug 21230
Thanks for a new bug. :-(
Trevix

bwmilby
Posts: 212
Joined: Wed Jun 07, 2017 5:37 am
Location: New Orleans, LA
Contact:

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

Post by bwmilby » Wed Apr 25, 2018 4:09 pm

Now we just need to see when it appeared...
Brian Milby

Script Tracker https://github.com/bwmilby/lc-misc/tree/master/ScriptTracker

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6177
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

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.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”