There was a post in this group to do this very thing. I can no longer find
it to credit the creator. However what he posted was to put this code into
a BBedit file:
#!/usr/bin/env perl -sw
use utf8;
$/ = "\n";
my $cntr = 0;
while (<>) {
print ++$cntr.". ";
chomp;
print;
print "\n";
}
Save that as YourFilterName.pl to "~/Library/Application
Support/BBEdit/Text Filters/YourFilterName.pl
***Not sure if a relaunch is necessary but it couldn't hurt.
Open your list and go the Menu Text->Apply Text Filter and select the
filter you just created.
Again, I did not write this and deserve no credit and wish I could find the
thread were I got this from so as to properly credit the person who did
write it.
-G
On Tuesday, March 26, 2019 at 8:50:11 AM UTC-4, Vlad Ghitulescu wrote:
>
> Hello!
>
> I have a bunch (64 exactly :-) lines selected (copied from an iTunes
> playlist and inserted in BBEdit), like this 5 ones
>
> Another One Bites The Dust 3:37
> Bicycle Race 3:04
> Bohemian Rhapsody 5:58
> Breakthru 4:09
> Bring Back That Leroy Brown 2:15
>
> and I would like to prepend a number (beginning with 1) in this format
>
> 1. Another One Bites The Dust 3:37
> 2. Bicycle Race 3:04
> 3. Bohemian Rhapsody 5:58
> 4. Breakthru 4:09
> 5. Bring Back That Leroy Brown 2:15
>
> that is
>
> NUMBER. TRACK-TITLE TRACK-LENGTH
>
> How can I do this?
>
> Thanks!
>
> Regards,
> Vlad
>
> P.S. If I could also replace whatever is before the track length with a
> space I would be even happier :-D
>
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.