Need help with Apple Script/Automator

Discussion in 'Mac Programming' started by ashameer, Jan 20, 2013.

  1. macrumors newbie

    Sep 24, 2009
    Hey all,

    I want to access an online catalogue on my iPad, as the catalogue is using flash to display in the net, I can´t, but individual pages can be loaded as pdf. As it has somewhat over 1500 pages I don´t want to click every page on my mac and save it. I found that all the pdfs are residing in one folder on the server, sadly the folder can´t be accessed directly, only the individual files.

    this path leads to page 1 off the catalogue, pagina.00002.pdf is page 2 and so on. So basicly what I need is a workflow, software, script that starts with page 1, than adds 1 to the filename saves it and so on. Sadly I wasn´t able to find a way in Automator to get this working. As i`m an absolute Noob regarding Apple Script and programming in general, I hope some of the fine people here can help.

  2. macrumors regular

    Jul 23, 2002
    Open the terminal and type the following:
    mkdir pdfs
    cd pdfs
    curl[0001-1500].pdf -o pagina.0#1.pdf
    When it finishes you will have all of the files from the server. Not an AppleScript, but it doesn't look like anything that needs to be done on a daily basis.

Share This Page