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.
|
|
|
|
|
|
|
|
|
|
|
Holiday Weekend Hours
Our Customer Service hours this weekend are as follows:
Friday, April 18: 8:00 - 4:00
Saturday, April 19: closed
Sunday, April 20: closed
Monday, April 21: Regular hours
Thank you!
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!
Update to RealBand® 2025 Build 5 Windows Today!
Already using RealBand® 2025 for Windows®? Download Build 5 now from our Support Page to ensure you have the latest enhancements and improvements from our team.
Get the latest update today!
PowerTracks Pro Audio 2025 for Windows is Here!
PowerTracks Pro Audio 2025 is here! This new version introduces many features, including VST3 support, the ability to load or import a .FLAC file, a reset option for track height in the Tracks window, a taller Timeline on the Notation window toolbar, new freeze buttons in the Tracks window, three toolbar modes (two rows, single row, and none), the improved Select Patch dialog with text-based search and numeric patch display, a new button in the DirectX/VST window to copy an effects group, and more!
First-time packages start at only $49. Already a PowerTracks Pro Audio user? Upgrade for as little as $29!
www.pgmusic.com/powertracks.htm
Video: Summary of the New Band-in-a-Box® App for iOS®
Join Tobin as he takes you on a tour of the new Band-in-a-Box® app for iOS®! Designed for musicians, singer-songwriters, and educators, this powerful tool lets you create, play, and transfer songs effortlessly on your iPhone® or iPad®—anytime, anywhere.
Band-in-a-Box® for iOS® :Summary video.
Check out the forum post for more information.
|
|
|
|
|
|
|
|
|
|
|
Forums58
Topics83,888
Posts771,823
Members39,475
|
Most Online25,754 Jan 24th, 2025
|
|
|
|
|
|
|
|
|