Audio-M4P
view release on metacpan or search on metacpan
lib/Audio/M4P/QuickTime.pm view on Meta::CPAN
...OR...
#!/usr/bin/perl
use Tk;
use Cwd;
use strict;
use warnings;
use Audio::M4P::QuickTime;
my $backup_requested = "yes";
my $win = new MainWindow;
my $frm = $win->Frame()->pack;
$frm->Label(
-text => "Anonymize Apple iTunes Plus .m4a Files",
-font => "Garamond 20 bold",
)->pack;
my $do_backup_choice = $frm->Radiobutton(
-text => "Back Up (append .old.m4a to old files)",
-value => 'yes',
-variable => \$backup_requested,
-font => "Garamond 14 bold",
)->pack;
my $do_no_backup_choice = $frm->Radiobutton(
-text => "Do Not Back Up (files will be over-written!)",
-value => 'no',
-variable => \$backup_requested,
-font => "Garamond 14 bold",
)->pack;
my $convert_button = $win->Button(
-text => "Convert Files",
-command => \&push_button,
-font => "Garamond 17 bold",
)->pack;
my $exit_button = $win->Button(
-text => "Exit",
-command => sub { exit 0 },
-font => "Garamond 17 bold",
)->pack;
MainLoop;
sub push_button {
my $write_extension = $backup_requested eq 'no' ? '' : '.old.m4a';
my @file_list = $win->getOpenFile(
-defaultextension => ".pl",
-filetypes => [ [ 'MP4a files', '.m4a', ], [ 'All Files', '*', ], ],
-initialdir => Cwd::cwd(),
-initialfile => "getopenfile",
-title => "Choose Purchased Apple iTunes Plus Files to Anonymize",
-multiple => 1,
);
foreach my $filename (@file_list) {
( run in 1.315 second using v1.01-cache-2.11-cpan-49f99fa48dc )