Remote naming of tracks

Feedback and Reviews for Audacity 2.x
Forum rules
This board is ONLY for general feedback and discussion about Audacity 2.X.

If you require help, or think you have found a "bug", please post on the forum board relevant to your operating system.
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Emerogork
Posts: 314
Joined: Wed May 18, 2011 11:56 pm
Operating System: Windows 10

Remote naming of tracks

Post by Emerogork » Sat Apr 12, 2014 2:41 pm

I am using the Task Scheduler in WIN7 to run a batch (.au3) file that starts and stops recordings in Audacity using

WinAcivate("Audacity")
SendKeepActive("Audacity")
Send("!^+rr")". {and rs}

The problem is knowing the contents of the tracks once many have been recorded.
I just discovered how to name tracks but wonder if I can name them from the batch file.
If this is possible, I wonder if I can do a look up into Excel to grab the contents of a cell and place that into the name of a track? I will be asking in the Excel Forum for answers on this but wonder if they are going to send me back here...

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

Re: Remote naming of tracks

Post by kozikowski » Tue Apr 15, 2014 5:18 am

I am using the Task Scheduler in WIN7 to run a batch (.au3) file that starts and stops recordings in Audacity
I think we're all stunned you got it to work that far.
Koz

Emerogork
Posts: 314
Joined: Wed May 18, 2011 11:56 pm
Operating System: Windows 10

How do I name a track from a batch file.

Post by Emerogork » Sat Apr 19, 2014 1:34 pm

I see that when I drag a file into Audacity, it creates the track and names it according to the name of the file. This might answer a problem that I have wanted to fix.

On a different note: I am starting and stopping a recording using a batch file (.au3) . Every start creates a new track. How can I name the track from the batch file?

I can grab the information from a cell in Excel and now want to send it into Audacity to name the present track being recorded.

Throughts appreciated.

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

Re: How do I name a track from a batch file.

Post by Gale Andrews » Sat Apr 19, 2014 6:11 pm

Merged your duplicate topics.
Emerogork wrote:I am starting and stopping a recording using a batch file (.au3) . Every start creates a new track.
If you don't like that, Pause/Unpause or Append Record to the selected tracks instead.
Emerogork wrote:How can I name the track from the batch file?
Here is the link you need: http://www.autoitscript.com/forum/forum ... d-support/ .


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

Emerogork
Posts: 314
Joined: Wed May 18, 2011 11:56 pm
Operating System: Windows 10

Re: How do I name a track from a batch file.

Post by Emerogork » Sat Apr 19, 2014 6:28 pm

Gale Andrews wrote:Merged your duplicate topics.
Emerogork wrote:I am starting and stopping a recording using a batch file (.au3) . Every start creates a new track.
If you don't like that, Pause/Unpause or Append Record to the selected tracks instead.
Emerogork wrote:How can I name the track from the batch file?
Here is the link you need: http://www.autoitscript.com/forum/forum ... d-support/ .


Gale
No need for the Pause/Unpause as the new tracks are exactly what I want. I was only setting up for the question. Each new track is to be named from the batch file that creates it.

The link only went to another list of discussions. Was it supposed to direct me to something directly related to the topic or are you suggesting that that location would be a better place in which to ask the question?

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

Re: How do I name a track from a batch file.

Post by Gale Andrews » Sun Apr 20, 2014 5:48 pm

Emerogork wrote:Are you suggesting that that location would be a better place in which to ask the question?
You got it. ;) The exact syntax you need would depend on the specific macro program.

We've told you the key presses to rename the focused track. If you need to move the focus to another track, use UP arrow or DOWN arrow.


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

Emerogork
Posts: 314
Joined: Wed May 18, 2011 11:56 pm
Operating System: Windows 10

Re: How do I name a track from a batch file.

Post by Emerogork » Tue Apr 22, 2014 2:10 pm

Gale Andrews wrote:
Emerogork wrote:Are you suggesting that that location would be a better place in which to ask the question?
You got it. ;) The exact syntax you need would depend on the specific macro program.

We've told you the key presses to rename the focused track. If you need to move the focus to another track, use UP arrow or DOWN arrow.


Gale
Well, it was an "or" question so I will presume that you are pointing to a better place to ask the question. Your continued suggestion to use keys such as UP arrow and DN arrow makes me think that that you still think I am doing any of this manually. All action has to be in the batch file so all those questions did not net much. I will restart the discussion in the suggested area.

Emerogork
Posts: 314
Joined: Wed May 18, 2011 11:56 pm
Operating System: Windows 10

Re: Remote naming of tracks

Post by Emerogork » Tue Apr 22, 2014 2:49 pm

kozikowski wrote:
I am using the Task Scheduler in WIN7 to run a batch (.au3) file that starts and stops recordings in Audacity
I think we're all stunned you got it to work that far.
Koz
I am curious by your statement.
Are you stunned that I was actually able to do it?
Is there a better way and I am beating a dead horse?

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

Re: How do I name a track from a batch file.

Post by Gale Andrews » Tue Apr 22, 2014 3:27 pm

Emerogork wrote:Your continued suggestion to use keys such as UP arrow and DN arrow makes me think that that you still think I am doing any of this manually.
I meant, tell you macro program to use UP and DOWN.

I for one don't know exactly what you are trying to do in your script, but if you succeed with scripting an automated process and can share the script, perhaps others would find it useful.

Alternatives are to compile Audacity and use its scripting feature, or try Edgar Musgrove's "Audacity_Audiobiocolor" modified version of Audacity ( http://www.hometownband.org/members/efm ... unch26.zip ). That does some kind of scripted record/export/quit when you run it from the command-line.


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

Post Reply