Is a file an alias?

Ben Rubinstein benr_mc at cogapp.com
Tue May 6 14:18:49 EDT 2008


On 5/5/08 17:05, David Bovill wrote:
> I guess this works? Can someone test it on windows?
> 
> function file_IsAlias someFile
>>     put the aliasreference of someFile into testAlias
>>     return someFile is not testAlias
>> end file_IsAlias
>>
> 
> 2008/5/5 David Bovill <david at openpartnership.net>:
> 
>> Is there a way to find out if a file is an alias. The only way I can do it
>> at the moment is with MacOS specific hacks?
>>

Be wary: on the Mac there are three possible kinds of 'alias': a symbolic
link, a hard link, and a "Mac alias".  AFAICT, "the aliasReference" only
understands the third kind.

Possibly that should be the subject of an enhancement request in BZ?

- Ben





More information about the use-livecode mailing list