Automator??

Discussion in 'Mac Apps and Mac App Store' started by Me1000, Nov 7, 2006.

  1. Me1000 macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #1
    ok i have one big file
    basically there are about 60 html pages in this one file,

    all the html for one page is in a <textarea> field

    so i have about 60 of these

    <textarea>
    <lots of HTML>
    </textarea>
    <textarea>
    <lots of HTML>
    </textarea>
    <textarea>
    <lots of HTML>
    </textarea>

    ect...

    I need a way to make a separate php page form the HTML in each of those <textfield> tags

    Ive never used automator, but from what ive read this is the kind of thing it was made for...

    Any help would be appreciated!

    Thanks
     
  2. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #2
    sounds possible, could you post the file to get a better feel and possibilities on how to do this.
     
  3. Me1000 thread starter macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #3
    its attached all 6600 lines!

    i converted to txt since the board wont let me attach a html file

    ok i zipped it up, since its too large for the board to let me upload!!
    :eek:
     

    Attached Files:

  4. Me1000 thread starter macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #4
    Please use this instead!

    I had to fix some of the errors when it exported...
     

    Attached Files:

  5. Me1000 thread starter macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #5
    Anyone have any better ideas? lol

    or will i have to do it by hand?
     
  6. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #6
    sorry i haven't replied, been away from the computer. I just downloaded it and will take a look soon.

    edit: O_O (is all I have to say) looks do-able after I figure out exactly how
    edit edit: well I believe its possible, the only problem is that well I cant figure out how. sorry I cant be more helpful. What happened to make it like that?
     
  7. Me1000 thread starter macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #7
    Well,

    It is all stored in a MySQL database, each entry is on a different row in the DB

    I wanted to convert it all over, so i made a PHP script that would out them all on one page. to differ the pages, i put them in a textarea field.
     
  8. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #8
    ok here you go. hope this helps. Did it by hand in dreamweaver. took about 1 1/2 hours. View attachment site.zip

    their all html files, if you want them as php or a different naming scheme, I can do that automator.
     
  9. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #9
    here use this one i noticed # 15 i messed up on. I noticed your id numbers skipped in a couple places so thats why i assume i have 55 total and the giant file has 62. View attachment site 2.zip
     
  10. Me1000 thread starter macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #10
    Oh my god!!!! your my savior! 1.5 hours???

    Thank you for doing it by hand!
    I really appreciate it!

    I will have to convert them to php files for it to work,
    I will attempt to do it in automator, but if you can post instructions it might help lol.
    :)

    BIG THANKS!!!!

    nevermind i figured it out! :)
     
  11. Fearless Leader macrumors 68020

    Joined:
    Mar 21, 2006
    Location:
    Hoosiertown
    #11
    oh it was no problem. Just did it while watching some video podcasts. It was a brainless copy, paste, save, process. Glad you got automator to work, Its a great program to compliment applescript and other scripting languages.
     

Share This Page