PDA

View Full Version : Applescript get text from web




wesg
Nov 2, 2008, 05:08 PM
I'm writing an unusual script that can automatically add TV show episode data to video files ripped from DVDs. Right now it does everything I'm looking for, but it requires the original text to be in a text file, instead of directly from the web.

How can I get Applescript to collect data right from the web? Automator does the job with the text action, and that's exactly what I want to do without saving the file first.



HiRez
Nov 2, 2008, 06:46 PM
There's probably a more AppleScripty way to do it, but you can always call curl with the do shell script command. If you do a search on MacScripters (http://www.macscripter.net/), I think you will find a number of code examples of this. That's probably the best resource for anything AppleScript related.