• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
simple Quictime script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: simple Quictime script
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Why is this AppleScript working unreliably? Any ideas?
  • Next by Date: Re: simple Quictime script
  • Previous by thread: Re: Why is this AppleScript working unreliably? Any ideas?
  • Next by thread: Re: simple Quictime script
  • Index(es):
    • Date
    • Thread