Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

marcel (3299)

  (email not shown publicly)

Journal of marcel (3299)

Tuesday July 23, 2002
08:53 AM

Full-screen movies with Quicktime

[ #6574 ]

The QuickTime Player Applescript Dictionary reveals that the player can indeed play movies at full-screen, so you don't have to get QuickTime Pro for just that. Here's a program that lets you do it from the command-line.


use warnings;
use strict;
use File::Spec;

my $movie = shift || die "usage: $0 movie\n";
my $path = File::Spec->rel2abs($movie);

my $script = EOAS;
set thefile to get POSIX file "$path"
tell application "QuickTime Player"
        open thefile
        present movie 1 scale screen
end tell

exec '/usr/bin/osascript', '-e', $script;
die "can't exec osascript: $?";

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.