Windows 7 Alias to folder: treated as a doc
Posted: 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:
What am I doing wrong?
Trevix
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
Trevix