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.
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 » Wed Sep 14, 2011 6:07 am

Intel Mac Mini
OS-X 10.6.8 Snow Leopard
Audacity 1.3.13

No applications running. I removed Audacity from the applications doc, so the program has to come from /Applications. We're all in different directories.

Code: Select all

jimmy:~ koz$ pwd
/Users/koz
jimmy:~ koz$ ls -l
total 0
drwx------+ 17 koz  staff   578 Sep 13 22:23 Desktop
drwx------+ 10 koz  staff   340 Aug 28 21:14 Documents
drwx------+  5 koz  staff   170 Aug 28 19:23 Downloads
drwx------+ 35 koz  staff  1190 Jun 23 23:09 Library
drwx------+  3 koz  staff   102 Mar 19 19:43 Movies
drwx------+  4 koz  staff   136 Mar 20 14:39 Music
drwx------+ 17 koz  staff   578 Aug 28 19:10 Pictures
drwxr-xr-x+  5 koz  staff   170 Mar 19 19:43 Public
drwxr-xr-x+  5 koz  staff   170 Mar 19 19:43 Sites
drwxr-xr-x  76 koz  staff  2584 May 28 20:37 kozco

jimmy:~ koz$ Audacity Desktop/stereoNoise.wav 
-bash: Audacity: command not found

jimmy:~ koz$ open -a Audacity Desktop/stereoNoise.wav 
jimmy:~ koz$ 
The "open" command succeeds and Audacity opens with the "music" in it.

This might be interesting. This is what happens when I use fully qualified pathnames.

Code: Select all

jimmy:~ koz$ pwd
/Users/koz
jimmy:~ koz$ /Applications/Audacity/Audacity.app Desktop/stereoNoise.wav 
-bash: /Applications/Audacity/Audacity.app: is a directory
jimmy:~ koz$ 
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 » Wed Sep 14, 2011 2:17 pm

So Audacity.app isn't an executable. It's a special folder.
Koz

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 16, 2011 11:13 pm

Hi Koz,

Took a little time away from this. Sorry for the delay. Just wanted to let you know that I'd already verified and repaired permissions on the disk, and I did it again, twice, with no change. I'll read your subsequent posts right now...

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 16, 2011 11:42 pm

Koz and Gale,

My friend Patrick and I are about to have a crack at the "Why don't any applications open?" problem. It's because, and you hinted at it Koz, Audacity.app is actually a folder, not an executable, which is fine, because it contains a whole bunch of associated files. If you dig down deeply enough, inside /Applications/Audacity/Audacity.app/Contents/MacOS/, lives Audacity and Audacity.sh, and apparently they have to be concatonated for the shell to launch the executable. I'll get back to you on this.

Interestingly, you folks have referred to this importing uncompressed file warning. I'd never seen it, so I went into Preferences and found it unchecked in the Warnings section, so I checked and ok'ed it, quit Audacity, tried opening the file with Audacity, and got no warning and no file imported. Same thing.

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 17, 2011 1:08 am

Todd Merrell wrote:Audacity.app is actually a folder, not an executable, which is fine, because it contains a whole bunch of associated files. If you dig down deeply enough, inside /Applications/Audacity/Audacity.app/Contents/MacOS/, lives Audacity and Audacity.sh, and apparently they have to be concatenated for the shell to launch the executable.
OK, but nonetheless <app name> on Ubuntu always raises the application if it's installed, so this is still a bit surprising. And from what everyone one has said this is a general problem on Mac (because of how apps are packaged)?

I've got an iso extracted from the 1.3.12 dmg. There is no Audacity.sh file, but does:

Code: Select all

 
/Applications/Audacity/Audacity.app/Contents/MacOS/Audacity  Desktop/stereoNoise.wav    
launch Audacity (presumably with the file for Koz, if it works at all)?


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 » Sat Sep 17, 2011 3:03 am

It does, and it launches the audio on the timeline. But:

Code: Select all

Last login: Tue Sep 13 22:24:29 on ttys000
jimmy:~ koz$ ls
Desktop		Downloads	Movies		Pictures	Sites
Documents	Library		Music		Public		kozco

jimmy:~ koz$ pwd
/Users/koz

jimmy:~ koz$ /Applications/Audacity/Audacity.app/Contents/MacOS/Audacity  Desktop/stereoNoise.wav  
Fri Sep 16 19:35:07 jimmy.local Audacity[1581] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds: NULL window
Fri Sep 16 19:35:07 jimmy.local Audacity[1581] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

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 17, 2011 10:39 pm

kozikowski wrote:It does, and it launches the audio on the timeline. But:

Code: Select all

jimmy:~ koz$ /Applications/Audacity/Audacity.app/Contents/MacOS/Audacity  Desktop/stereoNoise.wav  
Fri Sep 16 19:35:07 jimmy.local Audacity[1581] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds: NULL window
Fri Sep 16 19:35:07 jimmy.local Audacity[1581] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

Thanks, Koz. Glad to see that works. The error seems the same that Todd was getting with Audacity and older browsers:
http://forum.audacityteam.org/viewtopic ... 98#p156290





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 » Sat Sep 17, 2011 11:45 pm

Gale and Koz,

How exciting - we seem to have parity on this one. I tried opening the file as you'd mentioned, the file opened in Audacity for the first time (actually exhilarating!), and I got the same error that Koz did:

[email protected]:~% /Applications/Audacity/Audacity.app/Contents/MacOS/Audacity Desktop/piano2-CoolEdit.mp3
Sat Sep 17 19:14:12 Todd-Merrells-MacBook-Pro.local Audacity[5819] <Error>: kCGErrorIllegalArgument: CGSGetWindowBounds: NULL window
Sat Sep 17 19:14:12 Todd-Merrells-MacBook-Pro.local Audacity[5819] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

I was wondering if my problem is related to pathnames, or maybe the way (my?) packages are set up on OS X (10.6.8). But what's weird is that Koz and I have exactly the same problem when we test in the above way, but when we try to open the file(s) with Audacity from the Finder (OS X's GUI), we get different results.

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 » Sun Sep 18, 2011 1:42 am

Without digging back through all those threads, have you tried Repair Permissions in the Disk Utilities?
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 » Sun Sep 18, 2011 2:07 am

Let's do permissions.

Code: Select all

jimmy:Desktop koz$ 
jimmy:Desktop koz$ pwd
/Users/koz/Desktop

jimmy:Desktop koz$ ls -al
total 38720
drwx------+ 20 koz  staff       680 Sep 17 18:14 .
drwxr-xr-x+ 22 koz  staff       748 Sep 12 22:25 ..
[email protected]  1 koz  staff     24580 Sep 17 18:26 .DS_Store
-rw-r--r--   1 koz  staff         0 Mar 19 19:43 .localized
drwxr-xr-x  19 koz  staff       646 Jun 16 22:13 Accounts
[email protected]  1 koz  staff       185 Sep 17 18:14 Audacity.txt
[email protected]  1 koz  staff  15711518 Sep 13 21:48 BlueCatChorusVST.dmg
drwxr-xr-x   5 koz  staff       170 Sep  6 20:00 Desktops
drwxr-xr-x  16 koz  staff       544 Aug 14 21:02 FCCLicenses
[email protected]  1 koz  staff       244 Sep 12 18:44 MacDevices.txt
-rw-r--r--   1 koz  staff   1627634 Sep  8 23:38 SMPTE_WIPE_QT.mov
[email protected]  1 koz  staff     32375 Sep  8 19:47 Screen shot 2011-09-08 at 7.46.57 PM.png
[email protected]  1 koz  staff    278472 Sep 15 22:52 Screen shot 2011-09-15 at 10.52.39 PM.png
[email protected]  1 koz  staff     17756 Sep 17 10:07 Screen shot 2011-09-17 at 10.06.59 AM.png
[email protected]  1 koz  staff      2122 Sep  7 18:36 audacityTest.txt
-rw-r--r--   1 koz  staff      8710 Sep 15 22:12 gong.wav
-rw-r--r--   1 koz  staff   1210892 Mar 20 11:41 piano2.wav
drwxr-xr-x  15 koz  staff       510 Sep 10 22:27 pix-clips
drwxr-xr-x  38 koz  staff      1292 Sep  6 20:55 purchases
[email protected]  1 koz  staff    882044 Sep 13 22:23 stereoNoise.wav
jimmy:Desktop koz$  
..
..

Code: Select all

jimmy:Applications koz$ 
jimmy:Applications koz$ pwd
/Applications

jimmy:Applications koz$ ls -l
total 0
drwxr-xr-x   3 root  wheel   102 Mar 22 22:51 Address Book.app

drwxr-xr-x   3 root  wheel   102 Jul  8 22:16 App Store.app
[email protected] 11 koz   admin   374 Aug 16 21:07 Audacity
drwxr-xr-x   3 root  wheel   102 Jul 11  2009 Automator.app
drwxr-xr-x   3 root  wheel   102 Jul  5  2009 Calculator.app
drwxr-xr-x   3 root  wheel   102 May 18  2009 Chess.app
drwxr-xr-x   3 root  wheel   102 Jul 14  2009 DVD Player.app
[email protected]  3 koz   admin   102 Apr 28  2010 Fetch.app
[email protected]  4 koz   admin   136 Jul 17 12:45 Firefox.app
drwxrwxr-x+ 31 root  admin  1054 Apr 12 22:57 Utilities
drwxrwxr-x   5 root  admin   170 Aug  3 08:17 iWork '09
jimmy:Applications koz$  
..
..

Code: Select all

jimmy:audacity koz$ 
jimmy:audacity koz$ pwd
/Applications/audacity
jimmy:audacity koz$ ls -l
total 168
drwxr-xr-x   3 koz  admin    102 Apr  6 16:36 Audacity.app
[email protected]  1 koz  admin  18614 Apr  6 16:41 LICENSE.txt
[email protected] 51 koz  admin   1734 Apr  6 16:37 Languages
[email protected]  1 koz  admin  65290 Apr  6 16:41 README.txt
[email protected]  3 koz  admin    102 Apr  6 16:41 help
[email protected]  3 koz  admin    102 Apr  6 16:36 modules
[email protected] 28 koz  admin    952 Apr  6 16:37 nyquist
[email protected] 24 koz  admin    816 Sep  6 19:30 plug-ins
jimmy:audacity koz$ 
..
..
At one time a million years ago, there was a scramble where the System was looking for 'Audacity' and the install created 'audacity' or it could have been reverse.

Koz

Locked