Hi there,
I'm a member of the popular "virtual world" Second Life which I like for building and chatting to my friends in, however, as a builder I have multiple accounts for it, and would like to create shortcuts that let me launch Second Life with appropriate command-line arguments to log me in directly.
The Second Life application itself has a simple set of command-line arguments for just such a case.
Now, I've managed to create a solution using Apple Script, but it isn't quite ideal yet. Here's the apple-script I'm using:
Nothing too complicated. However, the problem with this is that when it executes, it causes Terminal to open and display a window, which I don't really want. What I'm looking to do is execute the exact same instruction in a way that will invisibly execute my command, so all that happens in the end is that Second Life opens up.
I've also tried the same thing using Automator, but I end up with the automator "Run shell script" item appearing in my menu-bar which isn't ideal either (and which I can't figure out how to hide, bah!).
Is there a way to have my apple-script prevent the terminal opening in this way, or executing the script some other way? Or alternatively, is there something else I can use to do this, such as a simple program I could compile?
Thanks for any help!
I'm a member of the popular "virtual world" Second Life which I like for building and chatting to my friends in, however, as a builder I have multiple accounts for it, and would like to create shortcuts that let me launch Second Life with appropriate command-line arguments to log me in directly.
The Second Life application itself has a simple set of command-line arguments for just such a case.
Now, I've managed to create a solution using Apple Script, but it isn't quite ideal yet. Here's the apple-script I'm using:
Code:
tell application "Terminal"
do script "\"/Applications/Second Life.app/Contents/MacOS/Second Life\" -multiple -login <first-name> <second-name> <password>"
end tell
Nothing too complicated. However, the problem with this is that when it executes, it causes Terminal to open and display a window, which I don't really want. What I'm looking to do is execute the exact same instruction in a way that will invisibly execute my command, so all that happens in the end is that Second Life opens up.
I've also tried the same thing using Automator, but I end up with the automator "Run shell script" item appearing in my menu-bar which isn't ideal either (and which I can't figure out how to hide, bah!).
Is there a way to have my apple-script prevent the terminal opening in this way, or executing the script some other way? Or alternatively, is there something else I can use to do this, such as a simple program I could compile?
Thanks for any help!