Re: Problem with opening movie files in quicktime player
Re: Problem with opening movie files in quicktime player
- Subject: Re: Problem with opening movie files in quicktime player
- From: "Christopher C. Stone" <email@hidden>
- Date: Fri, 9 Feb 2001 05:00:44 -0600
Greetings,
At 14:51 +0530 02/09/2001, Arun Mozhi Selvan wrote:
>
i am able to open some .mov files through apple script. But i have some
>
trailers of movie files which do not open through the apple script. I want
>
to know why this happen and how to rectify the problem
[watch the wrap]
set playList to {alias "Lao-Tzu:Graphics:Movies QuickTime:Movie1.mpg", alias "Lao-Tzu:Graphics:Movies QuickTime:Movie2.mpg"}
tell application "QuickTime Player"
open playList
play movie 1
end tell
>
and is there any way to play an mp3 file using quicktime player
[watch the wrap]
set playList to {alias "Thor:Documents:iTunes:iTunes Music:Blue Vyster Cult:Cult Classic:Burning For You.mp3", alias "Thor:Documents:iTunes:iTunes Music:Blue Vyster Cult:Cult Classic:Don't Fear The Reaper.mp3"}
-- Just goofing around here by getting the name of the file.*
set AppleScript's text item delimiters to {":"}
set nm to text item -1 of (item 1 of playList as string)
set AppleScript's text item delimiters to {""}
tell application "QuickTime Player"
open playList
play movie nm
end tell
*You could also get the name of the file this way:
name of (info for item 1 of playList)
Of course you already know the file name unless you're using choose file to get it, so the point might be moot.
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden