Previous Thread
Index
Next Thread
Print Thread
Go To
#79771 07/15/10 03:08 AM
Band-in-a-Box for Macintosh
Joined: Jul 2001
Posts: 166
Apprentice
OP Offline
Apprentice
Joined: Jul 2001
Posts: 166
I would like to write a script which would print lead sheets from a list of songs.

Lanny

Band-in-a-Box for Macintosh
Joined: Sep 2009
Posts: 116
B
Apprentice
Offline
Apprentice
B
Joined: Sep 2009
Posts: 116
Looks like it works. I popped open "Automator," you know, that apple scripting program in your applications folder? Anyways, I hit record, click BIAB, type "Apple P", then clicked OK. I then hit stop in automator, and it recorded my script.
You tried that yet?

here's the resulting code that I got. I wish I understood how it worked:

-- Bring the window “Band-in-a-Box [No File Name] 2:49 [ZZJAZZ.STY:Jazz Swing Style]” to the front.
delay 1.783014
set timeoutSeconds to 2.000000
set uiScript to "click window \"Band-in-a-Box [No File Name] 2:49 [ZZJAZZ.STY:Jazz Swing Style]\" of application process \"Band-in-a-Box\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Press ⌘P
delay 0.064018
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"p\" using command down"
my doWithTimeout( uiScript, timeoutSeconds )

-- Type '
'
delay 1.056103
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"
\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Click the “Print” button.
delay 3.200038
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Print\" of window \"Print\" of application process \"Band-in-a-Box\""
my doWithTimeout( uiScript, timeoutSeconds )

on doWithTimeout(uiScript, timeoutSeconds)
set endDate to (current date) + timeoutSeconds
repeat
try
run script "tell application \"System Events\"
" & uiScript & "
end tell"
exit repeat
on error errorMessage
if ((current date) > endDate) then
error "Can not " & uiScript
end if
end try
end repeat
end doWithTimeout

Band-in-a-Box for Macintosh
Joined: Nov 2007
Posts: 335
E
Journeyman
Offline
Journeyman
E
Joined: Nov 2007
Posts: 335
Thats not really the same as what he was asking.....that is AppleScript simply recording all your movements and playing them back. Scriptable applications are different.


Musician, Polymath, Google Jedi, Apple Master, Windows Wrangler and Digital Wizard. High ratings in Nerd-fu & Geek-fu.

M1 Mac Mini, MacBook Pro Touchbar 15", Intel 27" iMac, M1 Mac Mini
https://musician.social/@ericdano
Band-in-a-Box for Macintosh
Joined: Sep 2009
Posts: 116
B
Apprentice
Offline
Apprentice
B
Joined: Sep 2009
Posts: 116
Dano,
Yeah, you're right, I don't think it is... but still, it's recordable.. so you can still do lots of automation. Seems to me if he wants to print his list of lead sheets, he might be able to do it using the record feature.
You still in the bay area?

Also, you guys ever check out Keyboard maestro? It's another macro enabling program. Easy to use and highly reviewed.

Band-in-a-Box for Macintosh
Joined: Nov 2007
Posts: 335
E
Journeyman
Offline
Journeyman
E
Joined: Nov 2007
Posts: 335
Problem with recording stuff is that when it expects that BinaB puts a window at position x, and it ends up in position x+2 it could mess things up pretty badly.

If you open AppleScript and see what Scriptable programs can do, it's pretty darn cool. Hopefully down the road PGMusic will add some scripting support but I'm just happy they seem to be fully supporting the Mac platform again. The couple year hiatus between version 12 and 2009 was pretty rough. I had written them off.....but they proved me wrong and really hit it out of the park.

Another scripting program I use is iKey.....mainly cause it came with this programmable USB footswitch I use.....


Musician, Polymath, Google Jedi, Apple Master, Windows Wrangler and Digital Wizard. High ratings in Nerd-fu & Geek-fu.

M1 Mac Mini, MacBook Pro Touchbar 15", Intel 27" iMac, M1 Mac Mini
https://musician.social/@ericdano
Band-in-a-Box for Macintosh
Joined: Sep 2009
Posts: 116
B
Apprentice
Offline
Apprentice
B
Joined: Sep 2009
Posts: 116
nice. Are you using the foot switch to turn pages while you play? What's your setup for viewing music?

Also, here's my attempt to stay on topic... one way to avoid weird window positions is to use keyboard shortcuts. automator pics up on them. you still in the bay area? Where are you playing these days? I still use that PDF you made a long time ago on pentatonic patterns based on the bergonzi stuff. Good stuff man.

Previous Thread
Next Thread
Go To

Link Copied to Clipboard
ChatPG

Ask sales and support questions about Band-in-a-Box using natural language.

ChatPG's knowledge base includes the full Band-in-a-Box User Manual and sales information from the website.

PG Music News
Introducing XPro Styles PAK 11 – Now Available for Windows Band-in-a-Box 2026 and Higher!

XPro Styles PAK 11 for Windows & Mac Band-in-a-Box® version 2026 (and higher) is here with 100 brand new RealStyles, plus 31 RealTracks/RealDrums!

Guess who’s back again? That’s right! It’s our XPro Styles PAK’s triumphant return with the 11th edition in this series! 100 new styles are coming your way spread across the rock & pop, jazz, and country genres. And this edition's wildcard genre explores the immense and far-reaching catalogue of electronic music! The included 31 RealTracks and RealDrums can be used with any Band-in-a-Box® 2026 (and higher) package.

Special offers available until August 31st, 2026!

All the XPro Styles PAKs 1-11 are on sale for only $29 ea (Reg. $49 ea), or get them all in the XPro Styles PAK Bundle for only $149 (reg. $299)! Order now!

Learn more and listen to demos of XPro Styles PAKs.

Video: XPro Styles PAK 11 Overview & Styles Demos: Watch now!

XPro Styles PAKs require Band-in-a-Box® 2026 or higher and are compatible with ANY package, including the Pro, MegaPAK, UltraPAK, UltraPAK+, and Audiophile Edition.

Introducing Xtra Styles PAK 22 – Now Available for Windows Band-in-a-Box 2026 and Higher!

Xtra Styles PAK 22 for Windows & Mac Band-in-a-Box version 2026 (and higher) is here with 200 brand new RealStyles!

It’s time to celebrate! Xtra Styles PAK 22 for Band-in-a-Box® is here, and we've got 200 brand-new styles coming your way!

No Xtra Styles PAK is complete without the classic rock & pop, jazz, and country volumes you know and love, and we’ve got plenty to share, with 150 styles spread across too many genres to list! Of course, it also wouldn’t be complete with our special wildcard volume to add a little spice and pizzazz to the mix. This year, because we loved it so much the first time, we’ve decided to make the second iteration of our SynthMaster volume, full of new sounds, interesting genres, and 50 engaging styles, all making use of the diverse SynthMaster plugin! Here you can find genres such as airy yacht rock, sultry electrotango, and even some synth soca funk. Don’t wait, pickup up Xtra Styles PAK 22 today!

In this PAK you can find: dulcet folk ballads, funky gospel country, Brazilian jazz fusion, upbeat 1980s pop, classic Americana, a plethora of breezy bossa novas, indie singer-songwriter, scintillating synthwave, exuberant electronica, and many, many more!

Special offers available until August 31st, 2026!

All the Xtra Styles PAKs 1-22 are on special for only $29 each (reg $49), or get all 22 PAKs for $199 (reg $399)! Order now!

Learn more and listen to demos of the Xtra Styles PAK 22.

Video: Xtra Styles PAK 22 Overview & Styles Demos: Watch now!

Note: The Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box®. (Xtra Styles PAK 22 requires the 2026 or higher UltraPAK, UltraPAK+, or Audiophile Edition. They will not work with the Pro or MegaPAK version because they need the RealTracks from the UltraPAK, UltraPAK+, or Audiophile Edition.

Introducing XPro Styles PAK 11 – Now Available for Mac Band-in-a-Box 2026 and Higher!

XPro Styles PAK 11 for Mac & Windows Band-in-a-Box® version 2026 (and higher) is here with 100 brand new RealStyles, plus 31 RealTracks/RealDrums!

Guess who’s back again? That’s right! It’s our XPro Styles PAK’s triumphant return with the 11th edition in this series! 100 new styles are coming your way spread across the rock & pop, jazz, and country genres. And this edition's wildcard genre explores the immense and far-reaching catalogue of electronic music! The included 31 RealTracks and RealDrums can be used with any Band-in-a-Box® 2026 (and higher) package.

Special offers available until August 31st, 2026!

All the XPro Styles PAKs 1-11 are on sale for only $29 ea (Reg. $49 ea), or get them all in the XPro Styles PAK Bundle for only $149 (reg. $299)! Order now!

Learn more and listen to demos of XPro Styles PAKs.

Video: XPro Styles PAK 11 Overview & Styles Demos: Watch now!

XPro Styles PAKs require Band-in-a-Box® 2026 or higher and are compatible with ANY package, including the Pro, MegaPAK, UltraPAK, UltraPAK+, and Audiophile Edition.

Introducing Xtra Styles PAK 22 – Now Available for Mac Band-in-a-Box 2026 and Higher!

Xtra Styles PAK 22 for Mac & Windows Band-in-a-Box version 2026 (and higher) is here with 200 brand new RealStyles!

It’s time to celebrate! Xtra Styles PAK 22 for Band-in-a-Box® is here, and we've got 200 brand-new styles coming your way!

No Xtra Styles PAK is complete without the classic rock & pop, jazz, and country volumes you know and love, and we’ve got plenty to share, with 150 styles spread across too many genres to list! Of course, it also wouldn’t be complete with our special wildcard volume to add a little spice and pizzazz to the mix. This year, because we loved it so much the first time, we’ve decided to make the second iteration of our SynthMaster volume, full of new sounds, interesting genres, and 50 engaging styles, all making use of the diverse SynthMaster plugin! Here you can find genres such as airy yacht rock, sultry electrotango, and even some synth soca funk. Don’t wait, pickup up Xtra Styles PAK 22 today!

In this PAK you can find: dulcet folk ballads, funky gospel country, Brazilian jazz fusion, upbeat 1980s pop, classic Americana, a plethora of breezy bossa novas, indie singer-songwriter, scintillating synthwave, exuberant electronica, and many, many more!

Special offers available until August 31st, 2026!

All the Xtra Styles PAKs 1-22 are on special for only $29 each (reg $49), or get all 22 PAKs for $199 (reg $399)! Order now!

Learn more and listen to demos of the Xtra Styles PAK 22.

Video: Xtra Styles PAK 22 Overview & Styles Demos: Watch now!

Note: The Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box®. (Xtra Styles PAK 22 requires the 2026 or higher UltraPAK, UltraPAK+, or Audiophile Edition. They will not work with the Pro or MegaPAK version because they need the RealTracks from the UltraPAK, UltraPAK+, or Audiophile Edition.

Peter Gannon Talks Band-in-a-Box with zplane

zplane recently interviewed Peter Gannon, the founder and creator of Band-in-a-Box, about the software's early days, what sets it apart from AI, how zplane's audio algorithms are used in Band-in-a-Box, and more!

Special thanks to the team at zplane for their continued support.

Check out the full interview here: https://products.zplane.de/blog/peter-gannon-interview-pg-music

Last Chance! The Band-in-a-Box® 2026 for Mac® Special Ends Today (May 31, 2026) at 11:59pm PDT!

Time really is running out! Save up to 50% on Band-in-a-Box® 2026 for Mac® upgrades and receive a FREE Bonus PAK—only when you order by 11:59 PM PDT today!

We've added many major new features and new content in a redesigned Band-in-a-Box® 2026 for Mac®!

Version 2026 introduces a modernized GUI redesign across the program, with updated toolbars, refreshed windows, smoother workflows, and a new Dark Mode option. There’s also a new side toolbar for quicker access to commonly used windows, and the new Multi-View feature lets you arrange multiple windows as layered panels without overlap, making it easier to customize your workspace.

Another exciting new addition is the amazing new AI-Notes feature, which can transcribe polyphonic audio into MIDI. View the results in notation or play them back as MIDI, and choose whether to transcribe an entire track or transcribe specific parts like drums, bass, guitars/piano, or vocals. There's over 100 new features in Band-in-a-Box® 2026 for Mac®.

There's an amazing collection of new content too, including 202 RealTracks, new RealStyles, MIDI SuperTracks, Instrumental Studies, “Songs with Vocals” Artist Performance Sets, Playable RealTracks Set 5, two RealDrums Stems sets, and much more!

Upgrade your Band-in-a-Box for Mac® to save up to 50% on most Band-in-a-Box® 2026 upgrade packages!

Plus, when you order your Band-in-a-Box® 2026 Mac upgrade during our special, you'll receive a Free Bonus PAK of exciting new add-ons.

If you need any help deciding which package is the best option for you, just let us know. We are here to help!

Band-in-a-Box® 2026 Mac Special Offers Extended Until May 31st!

Good news- we've extended our Band-in-a-Box® 2026 for Mac® special offers until May 31, 2026!

Band-in-a-Box® 2026 is packed with major new features, enhancements, and an incredible lineup of new content! The program now sports a sleek, modern GUI redesign across the entire interface, including updated toolbars, refreshed windows, smoother workflows, a new dark mode option, and more. The brand-new side toolbar provides quicker access to key windows, while the new Multi-View feature lets you arrange multiple windows as layered panels without overlap, creating a flexible, clutter-free workspace. We have an amazing new “AI-Notes” feature. This transcribes polyphonic audio into MIDI so you can view it in notation or play it back as MIDI. You can transcribe an entire track (all pitched instruments and drums) or focus on individual parts like drums, bass, guitars/piano, or vocals. There's an amazing collection of new content too, including 202 RealTracks, new RealStyles, MIDI SuperTracks, Instrumental Studies, “Songs with Vocals” Artist Performance Sets, Playable RealTracks Set 5, two RealDrums Stems sets, and much more!

There are over 100 new features in Band-in-a-Box® 2026 for Mac®.

When you order purchase Band-in-a-Box® 2026 before 11:59 PM PDT on May 31st, you'll also receive a Free Bonus PAK packed with exciting new add-ons.

Check out the Band-in-a-Box® for Mac packages page to find the best package for you.

Forum Statistics
Forums57
Topics86,636
Posts807,801
Members40,179
Most Online64,515
Apr 8th, 2026
Newest Members
maiyagg, RAYPA, Neveralull, alebasa, Shegzy Empire
40,179 Registered Users
Top Posters(30 Days)
MarioD 88
rsdean 76
WaoBand 48
vicarn 39
Today's Birthdays
pochofenix, sslechta
Powered by UBB.threads™ PHP Forum Software 7.7.5