Page 2 of 6

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

Posted: Thu Sep 08, 2011 5:26 pm
by Gale Andrews
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

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

Posted: Fri Sep 09, 2011 2:07 am
by Todd Merrell
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

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

Posted: Fri Sep 09, 2011 2:23 am
by Todd Merrell
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...

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

Posted: Fri Sep 09, 2011 3:14 am
by kozikowski
Right-click or Control-Click on the piano MP3 file and Get Info. What does your 'Open With' list look like. Here's mine.

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

Posted: Fri Sep 09, 2011 4:36 pm
by Gale Andrews
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

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

Posted: Fri Sep 09, 2011 8:25 pm
by kozikowski
Why of all the machines out there, would this machine be different?
Koz

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

Posted: Fri Sep 09, 2011 8:35 pm
by kozikowski
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

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

Posted: Sat Sep 10, 2011 11:52 pm
by Gale Andrews
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

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

Posted: Sun Sep 11, 2011 1:23 am
by Todd Merrell
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 1466 times
Here's my Command-I Get Info screen:
Command-I_Screen_shot.png
Command-I_Screen_shot.png (129.5 KiB) Viewed 1466 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 1466 times
Helpful?

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

Posted: Sun Sep 11, 2011 1:25 am
by Todd Merrell
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.