Mac HighSierra export command default location in applications folder

Questions, discussion and recipes for scripting and batch processing in Audacity.
See also the "Scripting" section of the Audacity manual.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
martinbarker99
Posts: 14
Joined: Wed Jan 22, 2020 9:42 pm
Operating System: Windows 10

Mac HighSierra export command default location in applications folder

Post by martinbarker99 » Mon Feb 10, 2020 8:26 am

Hello, I have mod-script-pipe working on mac HighSierra 10.13. If I use the pipeclient.py file to test the command:

Export2: Mode=Selection Filename="sampleFile.mp3" NumChannels=2

It will render the sampleFile.mp3 starting at the 'Applications' directory. So the output filepath is 'Applications/sampleFile.mp3'

My question is how can I change the output filepath to be elsewhere, like my /Users/martin/Documents folder?

On windows I can specify the full filepath from the start of the c drive for the filename, is there some way I can do that on mac OS to use the absolute path of the mp3 file in the export command? I want to do something like:

Export2: Mode=Selection Filename="/Users/martin/Downloads/tempFolder/sampleFile.mp3" NumChannels=2

It causes an error saying FileNotFoundError ERRno 2 No Such file or directory

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Mac HighSierra export command default location in applications folder

Post by steve » Mon Feb 10, 2020 10:24 am

martinbarker99 wrote:
Mon Feb 10, 2020 8:26 am
how can I change the output filepath to be elsewhere, like my /Users/martin/Documents folder?
You need to enter the full path and file name to the Export2 command.
For example (this example is on Linux):

Code: Select all

Export2:Filename="/home/steve/Desktop/exported.wav"
Note that the file path must be a complete file path, and the folder must exist.
martinbarker99 wrote:
Mon Feb 10, 2020 8:26 am
It causes an error saying FileNotFoundError ERRno 2 No Such file or directory
Check that the folder "/Users/martin/Downloads/tempFolder/" exists before you export.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Mac HighSierra export command default location in applications folder

Post by kozikowski » Mon Feb 10, 2020 4:06 pm

And use good filename hygiene with no punctuation marks other than -dash- and _underscore_.

Koz

Post Reply