In either case, hit the spacebar following the app name and then the command would take hold. Even though the latter appears to only copy the actual file name, it actually captures the full pathway.
To do so, you can either drag the file to the Terminal window to add to the line, or right click the file and select 'Copy ' and then use the Command+V shortcut to paste it into the Terminal. Open -a 'APPLICATION NAME' Open a file using the default application:įor this, you'll have to know the command pathway for the file you want to access. Or, if the application has a space in its name: If you input this exact phrasing, Terminal will open your Spotify app.