Applescript get text from web

Discussion in 'Mac Programming' started by wesg, Nov 2, 2008.

  1. wesg macrumors regular


    Jan 2, 2008
    Toronto, ON
    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.
  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    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, I think you will find a number of code examples of this. That's probably the best resource for anything AppleScript related.

Share This Page