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


Click here to return to the 'Save iTMS Music videos in iTunes 4.7.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save iTMS Music videos in iTunes 4.7.1
Authored by: BSS on Apr 29, '05 12:01:11PM

The below script doesn't work anymore after Tiger upgrade. Anyone knows how to fix the script?



set originalFile to do shell script "lsof -wa -Fn -c iTunes +D /tmp | grep -i QTP | head -1 | cut -c 2-"
if length of originalFile is greater than 0 then
set newFile to POSIX path of (choose file name default name "iTunes Video.mov")
if length of newFile is greater than 0 then
if newFile does not end with ".mov" then set newFile to newFile & ".mov"
do shell script "/bin/cp -v '" & originalFile & "' '" & newFile & "'"
do shell script "/Developer/Tools/ttt -t 'MooV' -c 'TVOD' '" & newFile & "' || true"
end if
else
display dialog "No movie found. Please make sure that the movie is currently visible in iTunes." buttons {"OK"} default button "OK"
end if



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: useEvil on Apr 29, '05 02:59:46PM

This should fix it:

lsof | grep -i qtch | head -1 | awk '{ print $9 }'

---
--
Fingerprint: 6196 6907 1E47 880A 76AA B6FD E9B6 A5D9 5D83 87BA
Public Key ID: 5D8387BA



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: useEvil on Apr 29, '05 03:43:07PM
Here is the full script if you don't have it:
set originalFile to do shell script "lsof | grep -i qtch | head -1 | awk '{ print $9 }'"
if length of originalFile is greater than 0 then
	set newFile to POSIX path of (choose file name with prompt "Save movie as:" default name "iTunes Video.mov")
	if length of newFile is greater than 0 then
		if newFile does not end with ".mov" then set newFile to newFile & ".mov"
		do shell script "cp -v '" & originalFile & "' '" & newFile & "'"
		do shell script "/Developer/Tools/SetFile -t 'MooV' -c 'TVOD' '" & newFile & "'"
	end if
else
	display dialog "No movie found." buttons {"OK"} default button "OK"
end if

---
--
Fingerprint: 6196 6907 1E47 880A 76AA B6FD E9B6 A5D9 5D83 87BA
Public Key ID: 5D8387BA

[ Reply to This | # ]

Save iTMS Music videos in iTunes 4.7.1
Authored by: jhonny on Apr 30, '05 04:25:04AM
In theory atleast
lsof -wa -c iTunes +D ~/Library/Caches/QuickTime/downloads/ | grep -i qtch | head -1 | awk '{ print $9 }'
should be faster. :)

[ Reply to This | # ]