I'm trying to open an iMacro from the mac terminal. I have the following:
open -a Firefox imacros://run/?m=#Current.iim
This however tries to read the link as a file on my computer. Is there anyway to say that this is a link and not a file. If I run imacros://run/?m=#Current.iim right on the browser it works fine.
Related
I want to open a specific URL in chrome via terminal in windows. I can open chrome via terminal by going to the directory where chrome is installed and calling chrome.exe in the terminal. And it opens a new window in Chrome.
But, how to open a URL in chrome through terminal, via some passed arguments in terminal??
In OSX El Capitan, I have set WebStorm to be the default application for opening .js files like so. This successfully opens WebStorm when opening a .js file via finder, or when cmd-clicking on the file from iterm2.
However, when WebStorm opens, the file I've chosen is not opened within WebStorm. The app simply has the same files I've opened before (whether or not the WebStorm app was running when I opened the file).
Using open -a /applications/WebStorm.app <filename> works fine, but it's less convenient than just clicking on the file I want, as I do for file extensions that I've set to open in Eclipse or Sublime.
Is there a way to get WebStorm to open the file I've selected?
Known issue, please follow IDEA-129532 for updates
In Behat testing you have an context to "show last response" of a step in test scenario. This fires up a browser window with static html of last response. But running this on mac os returns an error:
sh: x-www-browser: command not found
Any idea how to setup this command to a specific browser (e.g. chrome)?
So, in a terminal on my Mac, (OSX 10.5.8), I type:
open -a Firefox
and Firefox opens up.
When I type:
open -a opera
Opera opens up. Is this what you were looking for?
If you want the default browser to open up a web page for you, you can type:
open http://foobar.com
Reference for the more general solution.
CHEERS
Try AppleScript to control the browser, using the osascript command line tool. man osascript
More here: https://stackoverflow.com/a/7276138
this is the first time I ask on stackoverflow because I can't find the answer anywhere. I use emacs to write all my code and I just switched from ubuntu to mac os. One problem has been bothering me: How could you open emacs window from mac terminal just like you would open firefox window from terminal on Linux system? I know the way it works for Linux system is that, whenever you type a command from terminal, the terminal search for the binary in you PATH and execute it. Is it the case for Mac that you can only open applicaiton in window form under "/Application" directory and all binaries opened from terminal are in non-window form? Big thanks!!
The pre-installed Emacs that comes with OS X is built without the GUI. Hence
$ emacs # in the shell/terminal
will NOT open a graphical window, and instead will open up the text/terminal version instead. Note that this version (installed at /usr/bin/emacs) is also old, and is at 22.1.1 in Mountain Lion.
To get the behavior you desire (and also get the latest version of Emacs as a bonus), you can download the latest Emacs build. This is available at various places, including http://emacsforosx.com/.
Most of these pre-built Emacs are installed under /Applications, and in order to invoke from the terminal, you will need to specify the full path to the binary, which usually is:
/Applications/Emacs.app/Contents/MacOS/Emacs
You can create a simple alias to this binary in your .bashrc as:
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
and then invoke emacs in its full glory from the command line.
I just tried
/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal &
and it did open a new window just fine.
OS X 10.7.4 here.
EDIT: Indeed if I try:
open /Applications/Utilities/Terminal.app
No new terminal window is opened
But,
open --new /Applications/Utilities/Terminal.app
works also, and is probably better than my first option because the job is not tied to the terminal you started the new terminal with.
First, download a Mac OS/X emacs build from here: http://emacsformacosx.com/
Second, once it's installed, you can:
Open it from the command line with open -a emacs
Set it to run server mode in your .emacs init, and then at the
command line type emacsclient foo for file foo.
I'd recommend either getting emacs via fink, or going to here: http://emacsformacosx.com/
This will allow you to install a local version of emacs that runs through the X server, and thus has the full GUI interface.
not sure if u're looking for something like this
open /path/to/some.app
How can I get source code off the internet using SVN? I'm trying to download Oolong game engine for iPhone OS.
I am on Mac OS X 10.6 with XCode 3.2.2.
svn checkout http://oolongengine.googlecode.com/svn/trunk/ oolongengine-read-only
is the command I got from the Oolong Google Code page.
EDIT:
I've tried the command in Terminal. I don't know where the code ends up on my machine. I did not get any errors.
svn ships with Mac OS X, so all you need to do is open Terminal, navigate to the directory where you want the code, then you can copy and paste that line right in to terminal, hit enter, an voila, the code will be checked out on to your machine.