INTERACT FORUM

More => Old Versions => Media Center 14 (Development Ended) => Topic started by: keither on September 21, 2009, 08:15:12 pm

Title: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: keither on September 21, 2009, 08:15:12 pm
Hey folks,

I'm working on guest spot for an internet radio program.  I've been asked to provide the files with a specific file name format, which includes play order.  How can I go about exporting (copies of) my files from MC into a folder with a specific name which includes the sequence in a playlist?

Any help would be appreciated.
Title: Re: Export files w/ rename/sequence number in filename?
Post by: rick.ca on September 22, 2009, 12:37:07 am
With all the items in your playlist selected, right-click and select Rename, Move & Copy Files. Set the action to Copy (careful—it defaults to Rename). Set Base Path to the folder to copy to. Set Filename to Counter(1,1) [Name] (or replace [Name] with whatever the required format is).
Title: Re: Export files w/ rename/sequence number in filename?
Post by: keither on September 22, 2009, 11:23:31 am
Awesome!

Is there any way to zero-pad the counter:

01 - blah blah blah
02 - blah blah blah

(instead of 1 - blah)?
Title: Re: Export files w/ rename/sequence number in filename?
Post by: Lasse_Lus on September 22, 2009, 11:38:56 am
=PadNumber(Counter(1),2) - ["field"]

Title: Re: Export files w/ rename/sequence number in filename?
Post by: keither on September 22, 2009, 12:27:06 pm
Thanks - looks like there's a bug in the rename,move,copy dialog box.

I use this rule:
PadNumber(Counter(1,1), 2)_[Artist]_[Name]

And, as you drag your mouse around the box, the output numbers on the new filename jump.  I'm using 13.0.169.

Since this is core functionality, I'd love to see this addressed in 13 as well as 14.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: marko on September 22, 2009, 12:40:49 pm
It's not a bug, it's just the way it works. Some reading may help...

here (http://yabb.jriver.com/interact/index.php?topic=50622.msg346031#msg346031) and from here (http://yabb.jriver.com/interact/index.php?topic=48659.msg333453#msg333453) down.

Hopefully there's some info there that's useful to you.

-marko.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: keither on September 22, 2009, 12:50:08 pm
Thanks, marko.

I appreciate knowing it's not just me, but I would strongly argue that the current behavior is not the desired behavior.  Having to keep the mouse out of a window is a bug.  Since it's a bug, I'm hoping that the MC folks will be interested in helping.  :)
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: marko on September 22, 2009, 12:55:10 pm
They may, they may not, you can never really tell, but it's been that way since it's inception way back, at least two major builds ago.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: Matt on September 22, 2009, 01:25:12 pm
The counter function is built around a time-delay.  The list is running expressions on demand as you force a repaint by moving the mouse.  It's operating as it was designed to operate.

It sounds like you're looking for a ListIndex() or similar function.  This doesn't exist, but we'll keep it in mind.

Thanks.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: Matt on September 22, 2009, 01:46:27 pm
In build 72 and later (available in about a week):
NEW: Added ability to use "CustomData(#)" expression in the Rename, Move, & Copy Files dialog for outputting the list index.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: keither on September 24, 2009, 02:20:05 pm
See, and here people say there are no compelling reasons to upgrade.  *sigh*  Thanks, Matt.  Now I have to scrape together the upgrade fee.  :)
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: Matt on September 24, 2009, 02:39:05 pm
I think several of your requests here have also been added to v14:
http://yabb.jriver.com/interact/index.php?topic=51551.msg363759#msg363759

Regardless, thanks for considering the upgrade.
Title: Re: BUG: Using the PadNumber/Counter function doesn't give consistent results
Post by: keither on September 24, 2009, 02:43:21 pm
Oh, I know.  It's simply finances that have been holding me up.  I really do appreciate how responsive you've been to my requests.