Hi! Please consider following me on twitter: @hanekomu.
2002年07月23日
Full-screen movies with QuickTime
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.
#!/usr/bin/perl 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" activate open thefile present movie 1 scale screen end tell EOAS exec '/usr/bin/osascript', '-e', $script; die "can't exec osascript: $?";
posted at: 16:53 | path: /dev | permalink | 0 comments | 0 trackbacks
Comments are closed for this story.
Trackbacks are closed for this story.