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: DougAdams on Apr 30, '04 02:03:25PM
This is an AppleScript that asks for a name for the mov:
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
Put it in your iTunes Scripts folder and fire whenever you want.

[ Reply to This | # ]
OK, I''m a little slow...
Authored by: Dale Sorel on Apr 30, '04 04:20:19PM

I don't see a script menu in my iTunes v4.5.

Can someone tell me where I can find it?



[ Reply to This | # ]
OK, I''m a little slow...
Authored by: neoguri on May 01, '04 03:41:19AM
From Apple's own site: iTunes Scripts for Mac OS X. To install the scripts for iTunes on a computer running Mac OS X, follow these steps:
  • Download the iTunes for Mac OS X script collection
  • Quit the iTunes application
  • Locate and open the iTunes folder in the Library folder in your Home folder
  • Inside this folder, create a new folder named "Scripts"
  • Place the script files in the newly created Scripts folder
  • Launch iTunes. An iTunes Script menu displaying the script collection will now be available in the menu bar


[ Reply to This | # ]
Thanks for the reply...
Authored by: Dale Sorel on May 02, '04 03:07:56PM

...but I still can't get the menu to show up in iTunes.



[ Reply to This | # ]
Thanks for the reply...
Authored by: maratone on Jun 29, '04 05:43:52PM

It didn't work for me either at first until I:

1. opened the script in Script Editor
2. saved it with a .scpt extension
3. restarted iTunes

It might also work if you skip step 1.
btw, I'm using Panther with iTunes 4.6



[ Reply to This | # ]
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 | # ]