Community Forums Archive

Go Back

Subject:Creating a cut region
Posted by: CharlesK
Date:12/13/2014 1:28:35 PM

I have my PlayList set to be a CutList. In an open audio file, I have a selection, and pressing the Delete key on my keyboard creates a cut region. And, clicking Edit .> Delete does the same thing. However, with the same selection, if in a script I call:

DoMenuAndWait("Edit.Delete",true)

the cut region is not created and the selected audio is actually removed from the file. DoMenuAndWait acts as if I have my PlayList set to be a PlayList and not a CutList.

The SDK help file doesn't mention cuts at all. Any ideas? Thanks.

Message last edited on12/13/2014 7:53:56 PM byCharlesK.
Subject:RE: Creating a cut region
Reply by: CharlesK
Date:12/13/2014 7:54:38 PM

Well, changing

DoMenuAndWait("Edit.Delete",true)

to

DoMenuAndWait("Edit.Delete",false)

fixed the problem. I wonder why.

Subject:RE: Creating a cut region
Reply by: CharlesK
Date:12/14/2014 4:14:09 AM

I found out why. If I pass TRUE, then I'm actually sending Shift+Delete, which will remove the selected region. If I pass FALSE, then I'm sending just Delete, which will cut the selected region.

Go Back