Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

inkscape command line, where is it on mac?

Tags:

macos

inkscape

This is a kinda silly question. I've installed Inkscape on my mac (Marvericks OS) following this page http://www.inkscape.org/en/download/mac-os/

I know there is a command line option with inkscape. I tried to type inkscape on Terminal and there is no such command. I'm confused... Does this mean that I need to install the linux version of inkscape in order to use the command line?

like image 749
olala Avatar asked Feb 28 '14 02:02

olala


People also ask

Where is Inkscape installed on Mac?

Open Inkscape by double-clicking its icon in the Applications folder. You can open the Applications folder by selecting Go ‣ Applications from the menu bar in the Finder.

How do I open Inkscape command line?

You can launch the interactive command line with inkscape --shell . The main difference to commands in the normal mode is that you need to explicitly indicate when you want to open a file, e.g. file-open:filename. svg; select:flowRootID; query-height .

How do I get to the command line on Mac?

On your Mac, do one of the following: Click the Launchpad icon in the Dock, type Terminal in the search field, then click Terminal. In the Finder , open the /Applications/Utilities folder, then double-click Terminal.

What is the CMD command on Mac?

What is the Command key? The Command or Cmd key (sometimes referred to as the Apple key) is one of the most useful keys on a Mac keyboard. The Command key is used with a single letter key for many of the Mac's most common actions: Command-C to copy, Command-P to print, Command-V to paste and so on.


Video Answer


1 Answers

I have Inkscape installed in /Applications and running this from a terminal does the trick:

/Applications/Inkscape.app/Contents/MacOS/inkscape --help  Usage: inkscape-bin [OPTIONS...] [FILE...]  Available options:   -V, --version                             Print the Inkscape version number  ... etc. 

For ease of use symlink it to /usr/local/bin i.e.:

ln -s /Applications/Inkscape.app/Contents/MacOS/inkscape \       /usr/local/bin/inkscape 

In general, on MacOS Inkscape needs to be called with an absolute path, and all files given as arguments should also be full paths. See also:

https://bugs.launchpad.net/inkscape/+bug/1449251

like image 157
Josh B Avatar answered Sep 20 '22 17:09

Josh B