NAME

Mac::Alias::Parse - Parse and create Mac Alias records

SYNOPSIS

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 => [ ... ],
    ...
);

DESCRIPTION

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.

CREDITS

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

Copyright 2011-2013, Wim Lewis <wiml@hhhh.org>

This software is available under the same terms as perl.