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
Band-in-a-Box® 2025 for Mac® users: Build 904 now available!

If you're already using Band-in-a-Box® 2025 for Mac®, make sure to grab the latest update! Build 904 is now available for download and includes the newest additions and enhancements from our team.

Band-in-a-Box® 2026 for Windows® users: Build 1237 is now available!

Already a Band-in-a-Box 2026 for Windows user? Stay up to date and download the build 1237 to get all the latest additions and enhancements.

PowerTracks Pro 2026 for Windows is Here!

PowerTracks 2026 is here—bringing powerful new enhancements designed to make your production workflow faster, smoother, and more intuitive than ever.

The enhanced Mixer now shows Track Type and Instrument icons for instant track recognition, while a new grid option simplifies editing views. Non-floating windows adopt a modern title bar style, replacing the legacy blue bar.

The Master Volume is now applied at the end of the audio chain for consistent levels and full-signal master effects.

Tablature now includes a “Save bends when saving XML” option for improved compatibility with PG Music tools. Plus, you can instantly match all track heights with a simple Ctrl-release after resizing, and Add2 chords from MGU/SGU files are now fully supported... and more!

Get started today—first-time packages start at just $49.

Already using PowerTracks Pro Audio? Upgrade for as little as $29 and enjoy the latest improvements!

Order now!

Band-in-a-Box 2026 for Windows Special Offers End Tomorrow (January 15th, 2026) at 11:59 PM PST!

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

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

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 new AI-Notes feature, which can transcribe polyphonic audio into MIDI. You can view the results in notation or play them back as MIDI, and choose whether to process an entire track or focus on specific parts like drums, bass, guitars/piano, or vocals. There's over 100 new features in Band-in-a-Box® 2026 for Windows®.

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, XPro Styles PAK 10, Xtra Styles PAK 21, and much more!

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

Plus, when you order your Band-in-a-Box® 2026 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 for Windows® Special Offers Extended Until January 15, 2026!

Good news! You still have time to upgrade to the latest version of Band-in-a-Box® for Windows® and save. Our Band-in-a-Box® 2026 for Windows® special now runs through January 15, 2025!

We've packed Band-in-a-Box® 2026 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 process 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, XPro Styles PAK 10, Xtra Styles PAK 21, and much more!

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

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

Upgrade to Band-in-a-Box® 2026 for Windows® today! Check out the Band-in-a-Box® packages page for all the purchase options available.

Happy New Year!

Thank you for being part of the Band-in-a-Box® community.

Wishing you and yours a very happy 2026—Happy New Year from all of us at PG Music!

Season's Greetings!

Wishing everyone a happy, healthy holiday season—thanks for being part of our community!

The office will be closed for Christmas Day, but we will be back on Boxing Day (Dec 26th) at 6:00am PST.

Team PG

Forum Statistics
Forums57
Topics86,048
Posts799,350
Members40,017
Most Online44,367
Mar 4th, 2026
Newest Members
kimmolsn25, addsomebottom, m3talmud, Chunie, Karandeep
40,017 Registered Users
Top Posters(30 Days)
MarioD 148
DC Ron 104
rsdean 104
DrDan 74
WaoBand 70
Today's Birthdays
dipalma18, Joey45, Karantois
Powered by UBB.threads™ PHP Forum Software 7.7.5