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
--
if there is not a folder aliasPath then -- alias of a folder is a folder
create alias aliasPath to folder targetFolder
if the result is not empty then answer the result
end if
--
answer aliasPath & cr & the aliasReference of aliasPath -- answers
targetFolder
answer targetFolder& cr & the aliasReference of targetFolder -- answers
targetFolder -- instead of empty
--
end testAliases
On Monday, September 1, 2014 7:29:56 PM, Mark Wieder <[email protected]>
wrote:
Alain Farmer <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 alias "myAlias" to folder "existingFolder"
if the aliasReference of "myAlias" is empty then
die "it's not a reference!"
end if
--
Mark Wieder
[email protected]
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode