"do shell script" cmd does nothing

Discussion in 'Mac Programming' started by 99bobster99, Sep 15, 2011.

  1. 99bobster99 macrumors newbie

    Joined:
    Aug 2, 2011
    #1
    I'm having some issues, when I execute the "do shell script" command in Applescript, nothing happens in my open Terminal window? The only Applescript that does anything is the "keystroke" command? I don't want to use this command though, since I want my terminal window (and telnet) to operate in the background while another application is in the foreground, this "keystroke" command causes my text to appear in the foreground app??
     
  2. subsonix macrumors 68040

    Joined:
    Feb 2, 2008
    #2
    "do shell script" is unrelated to the Terminal app. If you want your script to start a terminal window, you can probably save the script in a file, then execute the file from the apple script, this should automatically open a terminal window if the script has the .command file extension, or no extension, provided that you have set it to executable.
     

Share This Page