Hello Kay,
I tested it empirically.
In version 6.6.2, the aliasReference of a file/folder returns the path to
file/folder itself; not empty as you suggest.
Either way, my function below works:
function isAlias pathToAlias
return the aliasReference of pathToAlias is not pathToAlias
end isAlias
On Wed, Sep 3, 2014 at 2:18 AM, Alain Farmer wrote:
> Thank you, Mark, but the aliasReference is NEVER empty.
>
The Dictionary says:
Comments:
If the aliasPath does not exist, the aliasReference function returns
empty and the result is set to "can't get".
If you are seeing something different, s
Explaining this has made me come-up with the solution:
function isAlias pathToAlias
return the aliasReference of pathToAlias is not pathToAlias
end isAlias
on testAliases currentFolder
--
put currentFolder & "test/" into targetFolder
put currentFolder & "test-alias" into aliasPath
Thank you, Mark, but the aliasReference is NEVER empty.
Therefore cannot use: if the aliasReference of it is empty
to test if something is an alias.:
on testAliases currentFolder
--
put currentFolder & "test/" into targetFolder
put currentFolder & "test-alias" into aliasPath
--
On 2.09.2014 11:08, Kay C Lan wrote:
On Tue, Sep 2, 2014 at 7:29 AM, Mark Wieder wrote:
I've never heard of a "there is an alias" reference. Instead try
The one true 'drawback' of a English like syntax; it certainly reads
like it should work ;-)
Of course LC's upcoming Open Language, will al
On Tue, Sep 2, 2014 at 7:29 AM, Mark Wieder wrote:
> I've never heard of a "there is an alias" reference. Instead try
The one true 'drawback' of a English like syntax; it certainly reads
like it should work ;-)
Of course LC's upcoming Open Language, will allow Alain to correct
this syntax shortf
Alain Farmer writes:
>setDirectoryTo someFolder
>create alias "myAlias" to folder "existingFolder"
>if the result is not empty then die the result
>answer there is an alias "myAlias" -- returns false !?!
I've never heard of a "there is an alias" reference. Instead try
create ali
Hello,
I am using version 6.6.2
I am perplexed by the following:
setDirectoryTo someFolder
create alias "myAlias" to folder "existingFolder"
if the result is not empty then die the result
answer there is an alias "myAlias" -- returns false !?!
answer there is an alias (someFolder &