[Pythonmac-SIG] Finding what a broken alias refers to.
Hubert Holin
Hubert.Holin at meteo.fr
Tue Jun 21 17:21:17 CEST 2005
Somewhere in the E.U., le 21/06/2005
Bonjour
For my first Python steps on the Mac, I am trying to find
information on all broken aliases in a folder hierarchy (i.e. aliases
which were created thru the Finder and which no longer reference an
existing file or folder). While I am able to find the aliases which
are broken, I would like to go a step further, and indicate *what*
the alias thinks it is referencing (the "original" item in the Finder
info), and I am encountering some problem.
It would seem that the best function to get that information is
thru the FSFollowFinderAlias function of the Alias Manager, but
unfortunately the only version which is wrapped is a member of the
Alias class, which I have not found a way to use, as all I have is an
instance of FSRef.
Likewise, the Alias Manager functions FSMatchAlias and
FSMatchAliasNoUI seem not to be wrapped.
What can I do, short of writing a C++ extension?
Merci
Hubert Holin
More information about the Pythonmac-SIG
mailing list