Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to open iTunes videos in QuickTime' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to open iTunes videos in QuickTime
Authored by: zlugg on Apr 08, '05 10:04:24PM
To open every temporary quicktime movie:
set TheStartupDisk to path to startup disk as string
set UsersIDNumber to do shell script "id -u"
set FolderForTemporaryItems to (TheStartupDisk & "private:tmp:" & UsersIDNumber & ":TemporaryItems") as alias

tell application "Finder"
	set TemporaryMovies to every item of FolderForTemporaryItems whose name starts with "QTPluginTemp"
end tell

repeat with i from 1 to the count of TemporaryMovies
	set ThisMovie to (item i of TemporaryMovies) as alias
	tell application "QuickTime Player"
		activate
		open ThisMovie
	end tell
end repeat


[ Reply to This | # ]