Applescript get text from web

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

  1. wesg macrumors regular

    wesg

    Joined:
    Jan 2, 2008
    Location:
    Toronto, ON
    #1
    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

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    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