Launching Audacity by opening a file doesn't import the file

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

Mac 0S X 10.3 and earlier are no longer supported but you can download legacy versions of Audacity for those systems HERE.
Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Launching Audacity by opening a file doesn't import the

Post by Gale Andrews » Thu Sep 08, 2011 5:26 pm

Thanks, Todd.

I agree the console errors don't seem relevant to the subject issue.

1.3.12 gives that error for FFmpeg because it doesn't support our latest FFmpeg version (0.6.2).

I understand you get the same console errors when opening an .aup file in both 1.3.12 and 1.3.13, but if you quit Audacity then double-click an .aup file, does Audacity open the project, or only open an empty window?

What path do you open these files from (and Koz's file you downloaded)? Can you give some example paths? Perhaps we can see something common about them.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Todd Merrell
Posts: 17
Joined: Tue Sep 06, 2011 1:03 am
Operating System: Please select

Re: Launching Audacity by opening a file doesn't import the

Post by Todd Merrell » Fri Sep 09, 2011 2:07 am

Thanks, Gale.

I understand the Ffmpeg error - makes sense.

When I double click an .aup file I get the same result.

I tried opening the example file from the commanbd line:

(my prompt here)/Desktop% open -a Audacity piano2-CoolEdit.mp3

...and same thing: Audacity opens, no imported file.

Same results when i open with each version of Audacity, whether it's an aup project file, an aif or an mp3. The weird thing? If I open Audacity forst, THEN open the example mp3 with Audacity, then it works. I'm going to take a look at this with Instruments...

-Todd

Todd Merrell
Posts: 17
Joined: Tue Sep 06, 2011 1:03 am
Operating System: Please select

Re: Launching Audacity by opening a file doesn't import the

Post by Todd Merrell » Fri Sep 09, 2011 2:23 am

Apologies for not giving more path info previously.

I'm just launching the example mp3 (trying to, anyway) from my Desktop. All my other files open with their respective applications. When I attempt to launch from the command line I'll cd into Desktop and go from there:

[email protected]:~/Desktop% open -a Audacity piano2-CoolEdit.mp3

Same thing. Audacity opens, no imported file. My account is an Admin account, and Audacity is installed in the top level of my drive, and the test mp3 is on my desktop, under Users/toddmerrell/Desktop. I've changed directories to the top level of my drive and made an explicit pathname to the file, like this:

[email protected]:/% open -a Audacity /Users/toddmerrell/Desktop/piano2-CoolEdit.mp3

And guess what? Same thing. Hmmm...

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

Re: Launching Audacity by opening a file doesn't import the

Post by kozikowski » Fri Sep 09, 2011 3:14 am

Right-click or Control-Click on the piano MP3 file and Get Info. What does your 'Open With' list look like. Here's mine.
Attachments
Screen shot 2011-09-08 at 7.46.57 PM.png
Screen shot 2011-09-08 at 7.46.57 PM.png (31.62 KiB) Viewed 1486 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Launching Audacity by opening a file doesn't import the

Post by Gale Andrews » Fri Sep 09, 2011 4:36 pm

Todd Merrell wrote:When I attempt to launch from the command line I'll cd into Desktop and go from there:
[email protected]:~/Desktop% open -a Audacity piano2-CoolEdit.mp3
Leaving aside why Open with doesn't pass the file to Audacity, the Audacity-supported command line syntax to open audio files or Audacity project files (including multiple files) is to pass them as arguments thus:

Code: Select all

 $  audacity file1.aiff file2.wav file3.ogg 
I would try the supported syntax as above ( from your Desktop if you don't give the path to the file(s) ). What is -a supposed to do on Mac ?

Also is there somewhere you can configure the open with command for Audacity so that it passes the file to it? There is a similar problem on (possibly only older versions of) Windows if you add a custom Audacity context menu command for a file type, but the operating system does not add "%1":
http://wiki.audacityteam.org/wiki/File_ ... text_menus

Although most applications did not need the "%1" so as to have the files passed to them, Audacity needed that.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Launching Audacity by opening a file doesn't import the

Post by kozikowski » Fri Sep 09, 2011 8:25 pm

Why of all the machines out there, would this machine be different?
Koz

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

Re: Launching Audacity by opening a file doesn't import the

Post by kozikowski » Fri Sep 09, 2011 8:35 pm

Oddly, that didn't work.

Code: Select all

client-dyn-3-197:audacity1.3.12 koz$ ls

Audacity.app	Languages	help		nyquist
LICENSE.txt	README.txt	modules		plug-ins

client-dyn-3-197:audacity1.3.12 koz$ Audacity 20110907dailiesCompressed.mp3
-bash: Audacity: command not found

client-dyn-3-197:audacity1.3.12 koz$ 
???

Koz

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Launching Audacity by opening a file doesn't import the

Post by Gale Andrews » Sat Sep 10, 2011 11:52 pm

kozikowski wrote:

Code: Select all

client-dyn-3-197:audacity1.3.12 koz$ ls

Audacity.app	Languages	help		nyquist
LICENSE.txt	README.txt	modules		plug-ins

client-dyn-3-197:audacity1.3.12 koz$ Audacity 20110907dailiesCompressed.mp3
-bash: Audacity: command not found

client-dyn-3-197:audacity1.3.12 koz$ 
Does :

Code: Select all

Audacity.app 20110907dailiesCompressed.mp3 
fare any better?

Or, Todd's method:

Code: Select all

open -a Audacity 20110907dailiesCompressed.mp3 
open -a Audacity.app 20110907dailiesCompressed.mp3 


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Todd Merrell
Posts: 17
Joined: Tue Sep 06, 2011 1:03 am
Operating System: Please select

Re: Launching Audacity by opening a file doesn't import the

Post by Todd Merrell » Sun Sep 11, 2011 1:23 am

Hi Koz,
kozikowski wrote:Right-click or Control-Click on the piano MP3 file and Get Info. What does your 'Open With' list look like. Here's mine.
I can't Get Info from the Right-Click or Control-Click contextual menu, but I can Command-I for Get info. Here's what my Right-Click looks like:
Right-Click_Screen_shot.png
Right-Click_Screen_shot.png (353.58 KiB) Viewed 1467 times
Here's my Command-I Get Info screen:
Command-I_Screen_shot.png
Command-I_Screen_shot.png (129.5 KiB) Viewed 1467 times
...and here's my Command-I Select Open With screen:
Command-I_Select_Open_With_Screen_shot.png
Command-I_Select_Open_With_Screen_shot.png (148.49 KiB) Viewed 1467 times
Helpful?

Todd Merrell
Posts: 17
Joined: Tue Sep 06, 2011 1:03 am
Operating System: Please select

Re: Launching Audacity by opening a file doesn't import the

Post by Todd Merrell » Sun Sep 11, 2011 1:25 am

Oops! Sorry - I just saw the Open With in the contextual menu - oh, brother. But it looks identical to the Command-I screen shot(s) I just posted.

Locked