1. Hindiann

    Hindiann New Member

    Joined:
    Jan 15, 2009
    Messages:
    115
    Likes Received:
    0
    hey guys! well since im very new to computer progamming and i only know bits and parts of code like

    cd ~/Desktop

    and other things that give u the location of stuff, i really want to make my own program to "run rs". its really very simple, it would only consist of three commands.

    cd ~/Desktop/Directory
    ./rslite
    run rs

    see i want to make it so i can write a program that does that all for me with one click. can someone teach me how to start programming like that? a jump start perhaps? Anything? Thank you guys so mcuh. the reason this project is so simple is because its my first
  2. Veritas06

    Veritas06 New Member

    Joined:
    Dec 23, 2007
    Messages:
    468
    Likes Received:
    0
    Device:
    2G iPod touch
    For mine:

    2G + Auto-LibUSB.bat
    In case you were wondering, i need to enable & disable LibUSB everytime because i'm on Windows 7 I& it stops me from getting the BSOD on shutdown
  3. Hindiann

    Hindiann New Member

    Joined:
    Jan 15, 2009
    Messages:
    115
    Likes Received:
    0
    that seems cool but u dont understand lol. i do not know anything about writing a program to run commands. do i put it in a notepad? what do i do? What language is that (C C++,C#)? and what command is "Echo"? also what language does terminal on mac use
  4. NobleRooster

    NobleRooster New Member

    Joined:
    Dec 30, 2008
    Messages:
    215
    Likes Received:
    0
    Device:
    2G iPod touch
    Ok, here is what my little booter I made looks like:
    Code:
    @echo off
    cd iRecoveryWin32
    cd iRecovery
    cd iRecovery_svn
    echo This file will help you boot you iPod Touch everytime it needs to be.
    echo When you are ready,
    pause
    echo.
    echo Put your iPod Touch 2g into recovery mode by
    echo turning it off.  (the "run rs" jailbreak
    echo will your iPod touch 2g in recovery mode
    echo when it is turned off.
    
    echo.
    echo.
    echo When the shell spawns type the "run rs"
    echo.
    pause
    irecovery -s
    echo.
    echo.
    echo Congrats! Your iPod touch should now be booting.
    echo Simply run this batch again if you need to reboot.
    echo.
    pause
    
    Basically, all I do is type "run rs" and "/exit", but you can put all that into notepad, and save it as file_name.bat and it'll run.

    I might try to make a nicer booter though, this only temp. so I don't have to cd into irecovery folder and stuff everytime.
  5. tallbus1

    tallbus1 Member

    Joined:
    Jan 25, 2009
    Messages:
    159
    Likes Received:
    0
    Device:
    iPhone 4S (Black)
    Wait so the script you 2 just posted, could I put those into a text document, .bat them, and then run them? After I set up the new thing of course.
  6. ipodtouch12321

    ipodtouch12321 New Member

    Joined:
    Feb 2, 2009
    Messages:
    180
    Likes Received:
    0
    why so complicated
    http://code.google.com/p/gojohnnyboi/downloads/list

    Code:
    @echo off
    redj0hnny.exe cmd "run rs"
    /exit
    put the redj0hny.exe in the same folder as the bat


    EDIT: Forget that just download this http://www.ifans.com/forums/showthread.php?t=151698
    ------------------double post merged------------------
    Its MS-DOS. Open notepad and copy that stuff in and just change it to a .bat file
  7. Hindiann

    Hindiann New Member

    Joined:
    Jan 15, 2009
    Messages:
    115
    Likes Received:
    0
    this is all good but i need to know how to do this on A MAC not a pc, tyvm all
    ------------------double post merged------------------
    suhmwahn help meh!
  8. ZeRoNiXx

    ZeRoNiXx New Member

    Joined:
    Oct 29, 2007
    Messages:
    205
    Likes Received:
    2
    Device:
    2G iPod touch
    AppleScript

    Code:
    set answer to button returned of (display dialog "Is your iPod in DFU Mode?" with icon stop buttons {"Cancel", "Yes!"})
    
    if answer is "Yes!" then
    Tell application "Terminal"
       do script "cd ~/Desktop/*FILE_LOCATION*" in front window
       do script "./rslite" in front window
       delay 2
       do script "run rs" in front window
       delay 2
       do script "killall Terminal"
    end tell
    end if
    
    open /Applications/AppleScript/Script Editor.app and paste this in, change *FILE_LOCATION* to where you have rslite, and hit compile. then choose save as and choose Application Bundle
  9. Hindiann

    Hindiann New Member

    Joined:
    Jan 15, 2009
    Messages:
    115
    Likes Received:
    0
    what does the first sentence of your applecode mean? "set answer.....
  10. ZeRoNiXx

    ZeRoNiXx New Member

    Joined:
    Oct 29, 2007
    Messages:
    205
    Likes Received:
    2
    Device:
    2G iPod touch
    it tells the system to look for a certain input, like clicking Yes! or Cancel. and if it finds the input Yes!, it does the action associated with the input Yes!. same with Cancel

    the app I attached will boot an iPod and has rslite bundled inside, so all you have to do is run it

    (the script is in Contents/Resources/Scripts/ if you wanna tweak it)

    tell me if it works

    Attached Files:

Share This Page