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


Click here to return to the 'A shell command to save iTunes Music Store videos' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell command to save iTunes Music Store videos
Authored by: CaptDeuce on Apr 30, '04 04:40:56PM

The line

do shell script "cp -v `lsof |grep -i QTP| grep iTunes|awk '{ print $9 }'` ~/Desktop/" & newName

will die a most horrible death if newName contains a space or other characters unfriendly to Unix. This version works for me:

set newName to text returned of (display dialog "Enter name for this movie:" default answer "iTunesVideo.mov")

if newName does not end with ".mov" then set newName to newName & ".mov"
do shell script "cp -v `lsof |grep -i QTP| grep iTunes|awk '{ print $9 }'` ~/Desktop/" & "'" & newName & "'"

My apologies for any ugly line wraping.

---
--
"Where's my other sock?" - A. Einstein

[ Reply to This | # ]