Terminal to run small program without sounds!!

tell application "Terminal"
do script "cd Mac
cd Backup
sudo ./backupstick
" in the front window
end tell
end run
this is my little script. it works nice. during it always makes sounds. bum bum...
isn`t it possible to disable this sounds...
or did I make a mistake in my program?

Your script isn't making any sounds. The only way that script would make a sound would be if backupstick made them, and then you need to look at that app, not at your script for resolution.
In any case, as written, your script is inherently dangerous. You make assumptions about the state of terminal.app that may not be true. You assume there's at least one window open, that the front window isn't doing anything (e.g. ssh'd into another machine, or running some other process), and that the current working directory of the front shell is where you want it to be.
You would be better off not using terminal.app at all:
do shell script "/path/to/backupstick" with administrator privileges

Similar Messages

  • Run a program without command line

    Hello,
    I was wondering if there was a way to run a java program without compiling the code and giving the 'java' command at the command prompt.
    For example, I want to put my program on a cd with all the necessary components for it to run on any windows system, regardless of whether there is any java technology already on the machine.
    Thanks

    Batchfile, look it up on google, its pretty self explanatory. um, I'll try to explain the basics......
    Ok, to create your own batch file, open notepad and then save the file with .bat instead of .txt
    A batch File is a series of system commands, so, for example, if you wanted your batch to run a file located at c:\temp, the first line of your batch file should just have word.exe c:\temp\filenamehere.doc, for example, this is a line from a batchfile I made:
    excel.exe g:\tmp\Andy_Test.xls
    a batch file can contain many commands and they will all execute sequentially.
    if you want to open your program from a cd, I would think, although I have never done it, that you should
    make a batch file that reads something like:
    "D:\foldername\filename"
    or i guess you could simply do it on c drive like this if your java program was poop.java
    "c:\myfolder\myfolder2\myfolder3\java poop"
    you couild even compile it before you run it
    "c:\myfolder\myfolder2\myfolder3\javac poop.java"
    "c:\myfolder\myfolder2\myfolder3\java poop"
    also, if your java app is a GUI, I would run it like this:
    "c:\myfolder\myfolder2\myfolder3\javaw poop"
    Go here to learn more about batch programming, I actually don't know that much about it.
    http://www.computerhope.com/batch.htm

  • How to run c program without xcode

    i want to run my c program without using Xcode coz its a huge download,plz help me out I'm new to mac

    The Xcode install is worth the time and space (in my opinion).  To enable the command line tools you have to also install those:
    http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-l ine-tools
    The nice thing about using Xcode is that you will have the debugger and also be able to build executables for other platforms (cross compile) since Xcode allows you to use an external build system.
    Here is another option... there are websites that allow you to compile and run code on the server side (through a web interface):
    http://ideone.com/jwTjgN

  • Run a program without JBuilder

    Hi,
    I have made a program that has 5 .java files (5 classes) and are all in a package. With JBuilder I can compile and run it correctly.
    I want to run it with command prompt and to make a batch file as well.
    In one file (first.java) I have the main class of course. I can not compile it
    I have tried
    javac -classpath ....  first.java and javac -classpath ....  package_name.first.javaHow all the files will be compiled as JBuilder does?
    please help me. I know the question is very stupid but I can't solve this problem.
    Thanks
    Kostas

    This is how I compile (engr_analyzer_2 is the name of my package)
    C:\Documents and Settings\Kostas\Servlets & JSP\engr_analyzer_2> javac -cp ..;.;lucene-1.4.3.jar;lucene-demos-1.4.3.jar; Lucene_v4.javaNote: Lucene_v4.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details
    And the message when I run the program is:
    Exception in thread "main" java.lang.NoClassDefFoundError: Lucene_v4 (wrong name
    : engr_analyzer_2/Lucene_v4)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    All the .class files are created.
    In my first post I could't compile because I did a wrong in the classpath that I have fixed now.
    I can not find those build features you told me.
    Thank you very much
    Kostas

  • Run labview program without necessity of labview license . is it possible?

    Hi
    I wonder is it possible to have a labview program that can be run without of necessity for labview license?
    now we can produce executable labview programs but they need labview licences.
    Best regards
    s Farashi
    Solved!
    Go to Solution.

    That does not make any sense. You have a license for the development system. You can create an exe and distribute as many copies as you want without further licenses. The only thing you have to distribute with the exe is the runtime engine. Where did you get the idea you needed a license for each exe?
    Message Edited by Dennis Knutson on 01-30-2010 12:11 PM

  • How can I run an external program without quitting Firefox?

    I want to run an external program from within Firefox, much as Outlook express is run from the email button. How do I set this up?
    Firefox doesn't import my Bookmarks from the listed html file. Any cure for this?

    I don't want to run the mail program, I want to run another program.
    Maxthon allows me to do this using External Tools. Does Firefox allow me to run other programs without leaving Firefox?
    2. Firefox allows me to load an html file which contains my bookmarks, but it doesn't load the bookmarks file. is there a solution?

  • Advanced question for running DOS programs on a Mac.

    So what is a simple process on a Windows machine seems to be a challege on my new Mac.
    In summary I have several hard drives laying around that need to be checked for problems before they are used. There are lots of free DOS programs available for PCs that do just that. Many are provided directly by the hard drive manufacturers themselves (ie Segate SeaTools) and they are fantastic. Macs unfortunately can't run DOS programs (without hacks like rEFInd) and none of the manufacturers provide Mac compatible software. Looking on the internet everyone points me to Disk Utility to check drives, but compaired to something like SeaTools, Disk Utility is useless. I found Micromats TechTool Pro 6 which comes close to what I need except its expensive and has lots of features I don't need.
    I want to avoid installing windows in bootcamp or a VM just to do this one simple task. Very frustrating that it seems like im the only one wanting to do this with a Mac.

    Did some more research and figured out these are my options:
    -Find a mac alternative (few out there, most very bacic, or very expensive)
    -use rEFInd (which is in beta, and modifies OSX)
    -bootcamp (which doesnt allow BIOS access to select a dvd DOS program, so doesnt help. Also, mac doesnt use legacy usb and keyboard drivers so you cant use keyboard/mouse in most DOS programs)
    -Vmware
    So to me my best option was to use Vmware. Installed on a USB hard drive to save space and configured VMware bios to boot from selected .iso of a disk and it worked. Successfully ran SeaTools and because VMware emulates legacy mouse/keyboard it worked.
    One problem though. SeaTools for DOS doesnt work from USB sata adapter, and considering its a macbook air im out of luck.

  • Air programs without having flash

    Can you run Air programs without having flash
    installed?

    If you're on Windows and are just looking to write a program
    with an HTML interface and Javascript for the application logic,
    Microsoft invented something much like AIR about 8 years ago called
    HTML Applications (
    http://msdn.microsoft.com/en-us/library/ms536496.aspx).
    It's basically a web page with one special tag at the top to set
    some application-like properties for the main window, named with a
    .hta suffix so Windows knows to open it with IE.
    The technology hasn't moved forward since the days of IE4,
    except of course that the base rendering engine has gotten a lot
    more powerful. You also lose out on cross-platform compatibility,
    and to get the single-file download-and-install behavior you get
    for free with AIR, you'll have to separately build some kind of
    installer, like an MSI. In an HTA, all of IE's security features
    are turned off, so you can do things like access COM objects to use
    more powerful APIs than a web app normally has access to. Through
    that interface, you can do all the same sorts of local file and DB
    access that AIR can do.
    Bottom line, you can think of HTAs as "AIR Lite for Windows".
    AIR is portable and, on the whole, a lot more powerful, but if you
    can tolerate its limits, it can be a good solution.

  • Is it possible to run the java program without main?

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    Ramya

    Hi,
    Is it possible to run the java program without main?
    if anybody know please tell me, how it is possible.
    Regards,
    RamyaWhy do you ask? It sounds like an odd question. Your program can be an applet and it doesn't need a main method in that case.
    Kaj

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • I have IE and Mozilla FF loaded on my vista run laptop. I have removed and reloaded the FF program without success. Internet Exployer runs fine. Help!!!!!!

    I have IE and Mozilla FF loaded on my vista run laptop. I have removed and reloaded the FF program without success. Once loaded I click the shortcut, but nothing happens. Internet Exployer runs fine. Help!!!!!!
    == 1 month ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, maybe after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Firewalls]] and http://kb.mozillazine.org/Firewalls
    See also http://kb.mozillazine.org/Browser_will_not_start_up

  • Compile and run a program with Terminal

    Hello, I used TextWrangler to create a .c file on my desktop. I want to compile and run the program using Terminal. However, I am new to programming and I am not sure how to achieve this. I have Xcode with Command Line Tools downloaded. I have the file "6_19.c" on my desktop currently. Any help would be appreciated.

    Your Desktop probably isn't in your execution path, so you might want to start by moving "6_19.c" from your Desktop to your Home folder. After that, in Terminal, just do
    gcc -o 6_19 6_19.c
    The general format is
    gcc -o <name you want the compiled program to have> <name of the source>.c
    Do not put any .extension on the end of the name you want the compiled program to have. Also note that after "gcc" there's a space, then a dash and the next character is a lower case letter 'o', not a numerical zero. There's a space between the name of the compiled program and the name of the source.
    To run the program, at your terminal prompt type
    ./6_19
    The general format is dot forward slash <name of the compiled program>
    There's no spaces at all.
    Good luck.

  • How do I write and run c++ programs via terminal?

    First off, if this is the wrong place to post, my apologies. I'm running arch off a raspberry pi, and sshing into it on my computer (a mac, if it makes a difference), and I was wondering how I could run c++ programs on it. I don't want to install a desktop environment, because I think using terminal is a cool challenge. I'm assuming I can just use nano or some other text editor to write them, but how do I get them to run, as well as get all the libraries I would need? I am thinking just things that run in terminal, no programs with a gui. Any suggestions?

    First, I am going to suggest you take Arch Arm questions to their forums.    They are the experts.
    But, what you ask is easy -- if the tools are installed on your ras-pi.  Here is some code I did not write that generates data that can be piped to gnuplot to animate a Lorenz  attractor. 
    ewaller$@$odin ~/devel/C/lorenz [130]1026 %cat lorenz.cpp
    #include <iostream>
    #define tab "\t"
    using namespace std;
    void lorenz(double *x,double *dxdt)
    dxdt[0]=10.0*(x[1]-x[0]);
    dxdt[1]=28.0*x[0]-x[1]-x[0]*x[2];
    dxdt[2]=-2.666666666666*x[2]+x[0]*x[1];
    int main(int argc,char **argv)
    int len=300;
    double x[len*3],dxdt[3],dt=0.01;
    x[0]=1.0;x[1]=1.0;x[2]=1.0;
    int cur=0,next=1;
    for(int i=1;i<len*10;i++)
    lorenz(x+3*cur,dxdt);
    for(int j=0;j<3;j++) x[3*next+j]=x[3*cur+j]+dt*dxdt[j];
    if(++cur == len) cur=0;
    if(++next == len) next=0;
    for(double t=0.0;t<100000000.0;t+=dt)
    cout<<"sp [-30:30][-30:30][0:50] '-' w l"<<endl;
    for(int i=cur+1;i<len;i++)
    cout<<tab<<x[3*i]<<tab<<x[3*i+1]<<tab<<x[3*i+2]<<endl;
    for(int i=0;i<cur+1;i++)
    cout<<tab<<x[3*i]<<tab<<x[3*i+1]<<tab<<x[3*i+2]<<endl;
    cout<<'e'<<endl;
    lorenz(x+3*cur,dxdt);
    for(int j=0;j<3;j++) x[3*next+j]=x[3*cur+j]+dt*dxdt[j];
    if(++cur == len) cur=0;
    if(++next == len) next=0;
    return 0;
    ewaller$@$odin ~/devel/C/lorenz 1027 %g++ lorenz.cpp
    ewaller$@$odin ~/devel/C/lorenz 1028 %./a.out|head
    sp [-30:30][-30:30][0:50] '-' w l
    -9.3252 -8.45882 29.0952
    -9.23857 -8.27211 29.1081
    -9.14192 -8.08701 29.0961
    -9.03643 -7.90593 29.0595
    -8.92338 -7.73113 28.999
    -8.80415 -7.56467 28.9156
    -8.68021 -7.40841 28.8105
    -8.55303 -7.26397 28.6853
    -8.42412 -7.13271 28.5417
    ewaller$@$odin ~/devel/C/lorenz 1029 %
    You may want to set up a cross compiler on your x86_64 Arch system for ARM.  That we can help you with....

  • Why does it report missing *.dll when running standalone programs on a separate PC without LabVIEW?

    I wrote a LabVIEW code to control GPIB, DAQ and Serial port. Then I built an installer including runtime engine. Everything works fine at the PC with the LabVIEW. I copy this installer folder to another computer without LabVIEW. I had no problem to install the program. But after I run the program, it started to ask for nilvaiu.dll. After I copied it under C\Windows\System32\, it started to ask for nimdbgu.dll, then niorbu.dll. Then it reported "The procedure entry point_pkgModulePackageEventLog@20 could not be located in the dynamic link library NIPALU.dll"
    I guess it missed some drivers. So I installed NI-488.2 for Windows on the PC. But it did not solve the issue.

    hi there
    i recommend to update to DAQ 7.4. the performance is much better.
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

Maybe you are looking for