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: Anonymous on May 10, '05 11:33:33PM
This one just opens the actual url of whatever size of the movie you copied in your browser. From there, you can choose to save it or not:
on run
   --Extract videoId of the selected video
   set AppleScript's text item delimiters to {"videoId="}

   --Open a new url based in the previous ID. This is how we get the exact location of the movie
   set UrlBase to "http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/viewVideo?b=a&videoId=" & (item 2 of (every text item of (the clipboard as text)))
   tell application "Safari" to make new document with properties {URL:UrlBase, visible:false}
   
   --Search in the source code of the page the reference to the ".mov" file and get it's exact location
   tell application "Safari"
      delay 3
      set codigo to source of front document as text
      set AppleScript's text item delimiters to {"MovieView autoplay="}
      set codigo to item 2 of (every text item of codigo)
      set AppleScript's text item delimiters to {"http://"}
      set codigo to item 2 of (every text item of codigo)
      set AppleScript's text item delimiters to {".mov"}
      set codigo to item 1 of (every text item of codigo)
      quit
   end tell
   
   --Open the movie in default web browser
   tell application "Finder" to open location "http://" & codigo & ".mov"
   
end run


[ Reply to This | # ]