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

Post Reply
trevix
Posts: 958
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
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
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/scriptTracker

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
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: 958
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
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
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/scriptTracker

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”