simple Quictime script
simple Quictime script
- Subject: simple Quictime script
- From: "Jan E. Schotsman" <email@hidden>
- Date: Tue, 12 Oct 2010 11:16:06 +0200
Hello,
I am trying to write a simple script that reopens a movie in QT Player:
set movieName to "a movie.mov"
set filePath to "/Users/user/Movies/a movie.mov"
tell application "QuickTime Player"
reopen_movie_in_qt_player(movieName, filePath)
end tell
on reopen_movie_in_qt_player(movieName, filePath)
exists window movieName
(* if (exists window movieName) then
close window
end if
open POSIX file filePath as alias *)
end reopen_movie_in_qt_player
If I run it in Script Editor I get the message "QuickTime Player got
an error: can't continue reopen_movie_in_qt_player"
this works:
set movieName to "a movie.mov"
set filePath to "/Users/user/Movies/a movie.mov"
tell application "QuickTime Player"
exists window movieName
end tell
(result = true or false)
What am I doing wrong?
Jan E.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden