Using Terminal commands

Discussion in 'Jiggy Runtime Development' started by Snootae, Jun 13, 2008.

  1. Snootae

    Snootae New Member

    Joined:
    Feb 27, 2008
    Messages:
    22
    Likes Received:
    0
    i was wondering if anyone could help me out about using terminal commands from jiggy apps, and also, how to take a text string from a textbox and use it in the command so say i've got a textbox with the text "me.wav" in it, and i want to use the command "playaudio" (ericas utilities) so that the end result is the command "playaudio me.wav" executed in terminal
  2. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    well the whole command would be

    executeShellCommand("/Applications/NameOfApp.app/Folder/playAudio /Applications/NameOfApp.app/Folder/me.wav
  3. Snootae

    Snootae New Member

    Joined:
    Feb 27, 2008
    Messages:
    22
    Likes Received:
    0
    thanks man, but how i do ad in text from a textbox?
  4. Omer

    Omer New Member

    Joined:
    Oct 14, 2007
    Messages:
    175
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    var data = new Data();

    data.loadFromFile( "text.txt");
    var text = data.asString();

    var popup = new UIAlertSheet( "Text:", [ text ] , 1 );
    popup.popupAlertAnimated( true );

    That's the Text thing

Share This Page