Log in to post
|
Print Thread |
|
|
|
|
Band-in-a-Box for Macintosh
|
Joined: Jul 2001
Posts: 166
Apprentice
|
OP
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
Apprentice
|
Apprentice
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
Journeyman
|
Journeyman
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
Apprentice
|
Apprentice
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
Journeyman
|
Journeyman
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
Apprentice
|
Apprentice
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.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
Video: Band-in-a-Box® 2025 for Mac®: VST3 Plugin Support
Band-in-a-Box® 2025 for Mac® now includes support for VST3 plugins, alongside VST and AU. Use them with MIDI or audio tracks for even more creative possibilities in your music production.
Band-in-a-Box® 2025 for Macs®: VST3 Plugin Support
Video: Band-in-a-Box® 2025 for Mac®: Using VST3 Plugins
Join the conversation on our forum.
Band-in-a-Box 2025 for Mac Videos
With the release of Band-in-a-Box® 2025 for Mac, we’re rolling out a collection of brand-new videos on our YouTube channel. We’ll also keep this forum post updated so you can easily find all the latest videos in one convenient spot.
From overviews of new features and walkthroughs of the 202 new RealTracks, to highlights of XPro Styles PAK 8, Xtra Styles PAKs 18, the 2025 49-PAK, and in-depth tutorials — you’ll find everything you need to explore what’s new in Band-in-a-Box® 2025.
Reference this forum post for One-Stop Shopping of our Band-in-a-Box® 2025 Mac Videos — we’ll be adding more videos as they’re released!
Band-in-a-Box 2025 for Mac is Here!
Band-in-a-Box® 2025 for Mac is here, packed with major new features and an incredible collection of available new content! This includes 202 RealTracks (in Sets 449-467), plus 20 bonus Unreleased RealTracks in the 2025 49-PAK. There are new RealStyles, MIDI SuperTracks, Instrumental Studies, “Songs with Vocals” Artist Performance Sets, Playable RealTracks Set 4, two new sets of “RealDrums Stems,” XPro Styles PAK 8, Xtra Styles PAK 19, and more!
Special Offers
Upgrade to Band-in-a-Box® 2025 for Mac with savings of up to 50% on most upgrade packages during our special—available until July 31, 2025! Visit our Band-in-a-Box® packages page for all the purchase options available.
2025 Free Bonus PAK & 49-PAK Add-ons
We've packed our Free Bonus PAK & 49-PAK with some incredible Add-ons! The Free Bonus PAK is automatically included with most Band-in-a-Box® for Mac 2025 packages, but for even more Add-ons (including 20 Unreleased RealTracks!) upgrade to the 2025 49-PAK for only $49. You can see the full lists of items in each package, and listen to demos here.
If you have any questions, feel free to connect with us directly—we’re here to help!
Band-in-a-Box 2025 Italian Version is Here!
Cari amici
È stata aggerate la versione in Italiano del programma più amato dagli appassionati di musica, il nostro Band-in-a-Box.
Questo è il link alla nuova versione 2025.
Di seguito i link per scaricare il pacchetti di lingua italiana aggiornati per Band-in-a-Box e RealBand, anche per chi avesse già comprato la nuova versione in inglese.
Band-in-a-Box 2025 - Italiano
RealBand 2025 - Italiano
Band-in-a-Box 2025 French Version is Here!
Bonjour à tous,
Band-in-a-Box® 2025 pour Windows est disponible en Français.
Le téléchargement se fait à partir du site PG Music
Pour ceux qui auraient déjà acheté la version 2025 de Band-in-a-Box (et qui donc ont une version anglaise), il est possible de "franciser" cette version avec les patchs suivants:
BIAB 2025 - francisation
RealBand 2025 - francisation
Voilà, enjoy!
Band-in-a-Box 2025 German Version is Here!
Update Your Band-in-a-Box® 2025 to Build 1128 for Windows Today!
Already using Band-in-a-Box 2025 for Windows®? Download Build 1128 now from our Support Page to enjoy the latest enhancements and improvements from our team.
Stay up to date—get the latest update now!
|
|
|
|
|
|
|
|
|
|
|
Forums58
Topics84,304
Posts777,523
Members39,612
|
Most Online25,754 Jan 24th, 2025
|
|
|
|
|
|
|
|
|