alias objects -- Python library reference



Next: FInfo objects Prev: FSSpec objects Up: macfs Top: Top

14.6.2. alias objects

data -- attribute of alias object
The raw data for the Alias record, suitable for storing in a resource or transmitting to other programs.
Resolve ([file]) -- Method on alias object
Resolve the alias. If the alias was created as a relative alias you should pass the file relative to which it is. Return the FSSpec for the file pointed to and a flag indicating whether the alias object itself was modified during the search process.
GetInfo (num) -- Method on alias object
An interface to the C routine GetAliasInfo().
Update (file, [file2]) -- Method on alias object
Update the alias to point to the file given. If file2 is present a relative alias will be created.
Note that it is currently not possible to directly manipulate a resource as an alias object. Hence, after calling Update or after Resolve indicates that the alias has changed the Python program is responsible for getting the data from the alias object and modifying the resource.



Next: FInfo objects Prev: FSSpec objects Up: macfs Top: Top