Mac::Alias::Parse - Parse and create Mac Alias records
use Mac::Alias::Parse; $fields = Mac::Alias::Parse::unpack_alias( $bytes ); $filename = $fields->{target}->{long_name}; $bytes = Mac::Alias::Parse::pack_alias( target => { inode => ..., long_name => ..., createdUTC => ..., ... }, folder => { ... }, inode_path => [ ... ], ... );
The functions unpack_alias() and pack_alias() convert between an alias record, as found in various Mac data structures or on disk, and an easier-to-manipulate Perl data structure.
unpack_alias()
pack_alias()
The initial information about the structure of alias records was derived from an unattributed text file found in various places on the internet.
Perl implementation and additional format investigation by Wim Lewis.
Copyright 2011-2013, Wim Lewis <wiml@hhhh.org>
This software is available under the same terms as perl.
To install Mac::Alias::Parse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mac::Alias::Parse
CPAN shell
perl -MCPAN -e shell install Mac::Alias::Parse
For more information on module installation, please visit the detailed CPAN module installation guide.