The concept that software will look in several folders, in the order stored as the path, to find which programs should be allowed to run.

learn more… | top users | synonyms

-1
votes
0answers
14 views

Process completed error on bash terminal [closed]

On entering a command like this into my bash terminal echo "export PATH=$PATH:~/Desktop/nand2tetris/tools" >> ~/.bash_profile ; source ~/.bash_profile to load a hardware simulator using ...
1
vote
0answers
30 views

How do items in the 'Applications' folder get on the path?

How does the 'Applications' folder get on the path? For example, I installed Chrome browser into the Applications folder on my Mac and I can type chrome at a bash shell prompt to start it. Now, if I ...
0
votes
2answers
14 views

Did I mess up my .profile file?

I was trying to update my system path, followed some directions online and accidentally types: touch ~/.profile Did I overwrite my .profile file? Does this mean that I have destroyed all of my PATH ...
0
votes
3answers
51 views

OS X: common paths for executable files

I have some executable files in OS X which I want to access from terminal from any area. For example in Linux, we can copy executables or binaries to /usr/local/bin or /usr/bin. So similar to that ...
0
votes
1answer
17 views

Access path of open file

I have a file open in, say, a pdf viewer (or some other application). I want to get the path of the open file as text. A simple approach to know the files location is to chose "Save As" - the ...
0
votes
1answer
35 views

default application to open folders with

Back in the days I used to run Path Finder for a while, but then removed it from the system and went back to regular finder. Now when entering i.e. open Desktop/ in the terminal, it opens up Finder ...
1
vote
1answer
32 views

Setting up execution path in Terminal

I have no experience with using Terminal but I am trying to install a program msbayes (installation instructions here. The instructions say to set up an execution path using either $ echo 'export ...
0
votes
1answer
29 views

How do I add the Applications folder to the terminal PATH?

For example, I have Sublime Text that I can open from Spotlight. However, sometimes I'm navigating with the terminal and I want to do sublime source.php, but since I don't have the sublime app ...
1
vote
2answers
112 views

set PATH in terminal OS X 10.11.3

I need to set path /usr/local/gnupg-2.1/bin to the command line. I tried to enter "export PATH=/usr/local/gnupg-2.1/bin:$PATH" in the command line, but it works until the terminal session ends. I ...
0
votes
1answer
1k views

I get errors when trying to install GTK+3 on my Mac OSX 10.9 system

I'm trying to install GTK+3 on my Mac OSX 10.9 system to run a pyGObject project I've been developing in Ubuntu. It runs perfectly on Ubuntu, so I wanted to test cross-platform compatibility. I'm ...
0
votes
1answer
38 views

Path not being honored?

I have the following in my .bash_profile: $ cat ~/.bash_profile # Prompt export PS1="\h:\W$ " # Standard path export PATH="/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin: ...
1
vote
1answer
65 views

Temporary Folder Path for Apple Script

set targetFile to (path to temporary items as string) & fileName I am trying to download a web image to temporary folder by curl in a Apple Script. According to the above code, the curl ...
1
vote
1answer
117 views

Get AppleScript Path of Parent Folder

I am writing an AppleScript that will be run from a USB drive, but the dive name may change often so I need to figure out how to get the directory path of the parent folder that contains the script. ...
1
vote
1answer
168 views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?
1
vote
1answer
140 views

Trying to install Ant but getting -bash: brew: command not found

I have installed Homebrew using the code ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" it returns this inside the Terminal window ==> This script ...
0
votes
0answers
90 views

How Do I Merge Apple Mail 'On My Mac' Folders or Flatten The Directory Structure?

I have a dozen or so separate email "archives" from a variety of different clients and many different email addresses dating back to about 1996. I have managed to get all the files in mbox format, ...
0
votes
2answers
70 views

How do I make my Mac use .bash_profile to add extra paths after I statically set $PATH?

I, like an idiot, decided to export PATH=/usr/local/sbin/. After some googling I was informed that one should use a .bash_profile file in the root directory of your user which you can use to append ...
0
votes
0answers
71 views

Getting real smb- / afp based network file path of opened files or folders

is there any opportunity to copy or read out the real network path of a file that you are displaying through the finder on a network share? examples.: smb://network-share.mydomain/DirTop/DirSec/Dir ...
0
votes
1answer
34 views

Adding a compiled application to $PATH. Understanding the problem

I'm trying to understand the whole $PATH problem but I've got no luck so far. Suppose that I've just compiled an executable with make and I need to launch it with the shell without using the full ...
0
votes
0answers
43 views

launchctl does not set environment variables correctly

I am trying to use launchctl to set the environment variables for Eclipse. What I want to do is pass my PATH to eclipse. I have tried to setup launchctl to do this. Here is the the output of ...
81
votes
3answers
36k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
0
votes
2answers
666 views
4
votes
0answers
3k views

Setting system-wide environment variables in El Capitan [closed]

I was using the method described in this post to invoke "launchctl setenv" to set environment variables globally. I have just upgraded to OS X 10.11 "El Capitan," and now I see that the launchctl ...
1
vote
2answers
238 views

What is the Default content in /private/etc/paths?

I have edited /private/etc/paths to allow access for Homebrew: /usr/local/bin /usr/bin /bin /usr/sbin /sbin I want to restore this file to the system Defaults. What are the default lines and ...
3
votes
3answers
4k views

Delete things from $PATH

I fiddled with my $PATH and now it's not working correctly anymore. So I thought, well, just remove the last things I added. However, I can't seem to figure out how. I added things like so export ...
1
vote
0answers
71 views

Copying a path of the app to a new directory?

I was wondering if someone could help me make an AppleScript that copies the app the script is into another location. So, this is what I tried... (Please don't say anything since I am new at ...
0
votes
1answer
421 views

OS X El Capitan & Android Studio 1.4

Has anyone else noticed the following with Android Studio 1.4 running on OS X El Capitan? I can't remember the exact point when I lost the ability to build an Android app from the IDE due to the fact ...
41
votes
7answers
25k views

How to set PATH for Finder-launched applications

Apps launched via Finder seem to not respect the PATH as set in .bash_profile. So when I try to run code from an IDE (Intellij) I no longer have access to programs in /usr/local/bin, which is ...
2
votes
1answer
47 views

TexMaker, permanent changing of the path

I just update my MacBook with the last OS, El Capitan. I follow all the suggestions (link-1 and link-2) in order to make TexMaker work in a proper way, but when I relaunch the application all the ...
1
vote
1answer
275 views

Converting between a Mac file path to a Windows file path

I am working in an office that is dominated by PCs, but we are moving select designers to a Mac platform (testing). The biggest issue I have come across is sharing file paths to shared drives, and the ...
1
vote
2answers
60 views

Copy a file's NSURL to clipboard

I am trying to do a rather simple thing: in the context menu I want to have an action (e.g. with Automator) that gets and copies the file's NSURL to clipboard. The solution seems simple, but it does ...
2
votes
0answers
17 views

bash: ping: command not found [duplicate]

My shell can't find ping. $ ping -bash: ping: command not found $ uname -r 14.5.0 $ echo $PATH /usr/local/bin:/usr/bin:/bin:/Users/alex/.cabal/bin $ which ping $ However, man ping works and ...
1
vote
0answers
59 views

Adding a directory to $PATH doesn't work in Yosemite

I've tried to do it both ways: 1. I edited ~/.bash_profile like so: $ cat ~/.bash_profile export PATH="${PATH};~/bin" $ $ ls -l ~/.bash_profile -rw-r--r-- 1 myuser staff 202 Oct 1 16:57 ...
8
votes
3answers
6k views

In Mountain Lion how do I set, in one place, the PATH environment variable for all newly launched applications?

On Ask Different there are many questions regarding the PATH environment variable and how to set it for applications launched by a shell, by spotlight or via the finder (typical questions: How to set ...
0
votes
1answer
121 views

How do you specify Firefox 'open file' location?

Firefox documentation specifies that when you click a link to download a file and select 'open', that it downloads it to a temp folder. While this is true on a Windows system, it is not in Yosemite. ...
0
votes
2answers
399 views

Adding Gradle to PATH

I am trying to add Gradle to my PATH. I have used the command export PATH=/myUsername/Applications/gradle-2.6/bin:$PATH but when I type gradle I get an error "command not found." So I went to ...
0
votes
0answers
18 views

How to undo a $PATH variable change? [duplicate]

Is it possible to undo a change to the $PATH variable on OS X Yosemite? I was trying to add to the $PATH and accidentally changed the entire thing to one path. I just need to know if I can undo this ...
0
votes
1answer
37 views

How do I get the location of a locked file in Preview?

I used to be able to Right-click or Command-click the name of the file in the title bar and see the path, whether the file was locked or not. Now when I open an attachment from Outlook (yes, I know ...
3
votes
1answer
240 views

Permanently saving changes to $PATH [duplicate]

I have ruby and homebrew running for a while and I'm starting to play with Bash. I have encountered a problem with my PATH variable as echo'd: ...
-1
votes
1answer
56 views

Using variables in pathnames and pathname variable help plus finding username applescript?

So, I want to have my script to be able to find out the current user's username and store it in a variable (myUsername). Then, it will go to /Users/myUsername/Desktop/FV.app. How can I do this and ...
0
votes
1answer
399 views

OS X 10.10.4 Yosemite, has the default PATH changed?

Today I had to configure a new macbook, running 10.10.3 out of the box and immediately upgraded to 10.10.4. After installing homebrew I went to configure the default PATH, and opened /etc/paths. I ...
2
votes
1answer
53k views

Where are my all installed programs?

I am new to Mac OS X and till the time I was using Windows 7/8. I tried to download and install programs in Mac OS X, but I do not see them in Launchpad. Where are all my programs are going. ...
1
vote
3answers
129 views

Problem: How to clear all remnants of random.py, random.pyc, and random.pyo that isn't part of Python's standard library?

I wrote an import random code, and unfortunately saved it as the module's name I was trying to call. eg. random.py I believe, but am not sure, that I created the random.py file twice and thus I ...
1
vote
1answer
70 views

Is it possible to restore PATH? [duplicate]

So I accidentally run in terminal command export PATH="/usr/bin/php/bin" which override my defaults and none of the commands aren't responding. MacBook-Pro-Kil:home $ sudo -bash: sudo: command not ...
16
votes
3answers
25k views

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, ...
0
votes
3answers
177 views

I broke PATH in terminal and I can not restore it

in .bash_profile I accidentally set the path to: PATH="~/Tools/apache-maven-3.3.3/bin" and now the default path is gone. Nothing in Terminal works anymore: Korays-MacBook-Pro:~ koraytugay$ ls ...
0
votes
1answer
278 views

How do you get a clickable path to a file or folder?

I already saw a lot of questions and answers about how to copy the path of a file or folder using Automator. I personally like to use the copy option under the action menu on top of your finder ...
0
votes
1answer
2k views

Export PATH directly from command line in Yosemite--where is my PATH?

I want to use the latest version of git which I installed via Homebrew, so I needed to change my PATH variable to ensure OS X uses the Homebrew version instead of the outdated version that ships with ...
0
votes
1answer
94 views

bash- command not fount error

I tried to install omnet++ on my Macbook pro (OS 10.10) yesterday. I got an error so I delete path in my bash-profile. Now, every command I try to run in my terminal shows an error of command not ...