The original version of this page can be found at : http://forum.makemusic.com/default.aspx?f=12&m=440061
Posted By : gogreen - 10/14/2014 1:47 PM
How do I enter a carriage return in a "replace" script? I have a line of text in a text box in 23 unlinked parts, and I want to add a line of text above the initial line. What's the command and syntax for adding the carriage return?


Arthur J. Michaels

www.arthurjmichaels.com

Finale 2000, 2001, 2003, 2005, 2006, 2007, 2011b.r2 (currently using 2011b.r2)
Core i7 860 @ 2.80 GHz, 8.0 GB RAM, Windows 7 Home Premium x64 SP 1
Sonar X2 Essential
Garritan COMB2, GPO4, Aria Player 1.620, Audacity 2.0.6
Dell 2408 WFP, 1920x1200
M-Audio Delta Audiophile 2496
M-Audio Keystation 88es, Casio WK-3000
M-Audio AV40 monitors
AKG K-240 Studio headphones
Brother HL-5150D printer


Posted By : Charles Lawrence - 10/16/2014 6:59 PM

Arthur,

This Finalescript should do it:

search "Old line of text" replace with "New line of text above<13>Old line of text"


BTW: I could not get this to work in the "Edit -> Text Search and Replace..." dialog.  It does not seem to recognize <ASCII> as representing ASCII characters.  ASCII character 13 or control-m is the carriage return.


"Anything is possible if you don't know what you are talking about!"

 

Dell XPS 600, GenuineIntel Intel(R) Pentium(R) D CPU 3.00GHz [Intel64 Family 15 Model 4 Stepping 4] (2 processors)
8GB Ram
HT Omega Striker 7.1
MSI N430GT 2GB GPU
2 2TB and 2 4TB internal SATA HD's

Microsoft Windows 7 Ultimate x64 Edition, (06.01.7600.00)
Finale versions: 2011b.r2, 2012c.r13, 2014c.v4876

GPO4

 

"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell

Post Edited (Charles Lawrence) : 10/16/2014 6:08:37 PM (GMT-5)


Posted By : gogreen - 10/17/2014 12:38 PM
Thanks, Charles. I tried <13>, but it didn't work. Maybe I had the syntax wrong. I'll try it again.

Art


Arthur J. Michaels

www.arthurjmichaels.com

Finale 2000, 2001, 2003, 2005, 2006, 2007, 2011b.r2 (currently using 2011b.r2)
Core i7 860 @ 2.80 GHz, 8.0 GB RAM, Windows 7 Home Premium x64 SP 1
Sonar X2 Essential
Garritan COMB2, GPO4, Aria Player 1.620, Audacity 2.0.6
Dell 2408 WFP, 1920x1200
M-Audio Delta Audiophile 2496
M-Audio Keystation 88es, Casio WK-3000
M-Audio AV40 monitors
AKG K-240 Studio headphones
Brother HL-5150D printer


Posted By : Kelby - 12/2/2014 6:22 PM
^l starts a new line.

So you could script this:

search text block "This is old text." and replace with "New Text.^lThis is old text."

The output should look like this:

New Text.
This is old text.


Kelby Stine

Repertoire Development Music Engraver and Editor
MakeMusic, Inc.


Posted By : gogreen - 12/8/2014 9:53 AM
Thank you, Kelby. I haven't tried this yet, but I will. So ^l and <13> will do the same things?


Arthur J. Michaels

/www.facebook.com/composerarthurjmichaels

Finale 2000, 2001, 2003, 2005, 2006, 2007, 2011b.r2 (currently using 2011b.r2)
Core i7 860 @ 2.80 GHz, 8.0 GB RAM, Windows 7 Home Premium x64 SP 1
Sonar X2 Essential
Garritan COMB2, GPO4, Aria Player 1.620, Audacity 2.0.6
Dell 2408 WFP, 1920x1200
M-Audio Delta Audiophile 2496
M-Audio Keystation 88es, Casio WK-3000
M-Audio AV40 monitors
AKG K-240 Studio headphones
Brother HL-5150D printer


Posted By : Kelby - 1/13/2015 2:15 PM
<13> refers to an ascii character that typically is not mapped in a font. But it is the character designated as a carriage return. It should work too.

-K


Kelby Stine

Repertoire Development Music Engraver and Editor
MakeMusic, Inc.


Posted By : Charles Lawrence - 1/15/2015 12:59 PM

Arthur,

Both samples of Finalescript worked fine for me on Win 8.1 F2014d.


"Anything is possible if you don't know what you are talking about!"

 

Intel(R) Core(TM) i7-5930K CPU with 6 dual core processors @ 3.50 GHz (12 threads)

Realtek High Definition on board audio
NVIDIA GeForce GTX 980 GPU with 4GB ram

512 GB SSD

Four 4TB and one 1TB internal SATA HD's
Microsoft Windows 8.1 Pro with Media Center 64 Bit Edition
Finale versions: 2011b.r2, 2012c.r13, 2014d.v5030

GPO4.02

 

Cakewalk SONAR X3

 

"There is a world of difference between a person who has a big problem and a person who makes a problem big." – John Maxwell


Posted By : gogreen - 1/25/2015 10:10 AM
Yup. Both work now. Maybe I mis-typed it. Thanks.


Arthur J. Michaels

/www.facebook.com/composerarthurjmichaels

Finale 2000, 2001, 2003, 2005, 2006, 2007, 2011b.r2 (currently using 2011b.r2)
Core i7 860 @ 2.80 GHz, 8.0 GB RAM, Windows 7 Home Premium x64 SP 1
Sonar X2 Essential
Garritan COMB2, GPO4, Aria Player 1.620, Audacity 2.0.6
Dell 2408 WFP, 1920x1200
M-Audio Delta Audiophile 2496
M-Audio Keystation 88es, Casio WK-3000
M-Audio AV40 monitors
AKG K-240 Studio headphones
Brother HL-5150D printer