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
User Video: Next-Level AI Music Editing with ACE Studio and Band-in-a-Box®

The Bob Doyle Media YouTube channel is known for demonstrating how you can creatively incorporate AI into your projects - from your song projects to avatar building to face swapping, and more!

His latest video, Next-Level AI Music Editing with ACE Studio and Band-in-a-Box, he explains in detail how you can use the Melodist feature in Band-in-a-Box with ACE Studio. Follow along as he goes from "nothing" to "something" with his Band-in-a-Box MIDI Melodist track, using ACE Studio to turn it into a vocal track (or tracks, you'll see) by adding lyrics for those notes that will trigger some amazing AI vocals!

Watch: Next-Level AI Music Editing with ACE Studio and Band-in-a-Box


Band-in-a-Box® 2024 German for Windows is Here!

Band-in-a-Box® 2024 für Windows Deutsch ist verfügbar!

Wir waren fleißig und haben über 50 neue Funktionen und eine erstaunliche Sammlung neuer Inhalte hinzugefügt, darunter 222 RealTracks, neue RealStyles, MIDI SuperTracks, Instrumental Studies, "Songs with Vocals" Artist Performance Sets, abspielbare RealTracks Set 3, abspielbare RealDrums Set 2, zwei neue Sets von "RealDrums Stems", XPro Styles PAK 6, Xtra Styles PAK 17 und mehr!

Paket | Was ist Neu

Update Your PowerTracks Pro Audio 2024 Today!

Add updated printing options, enhanced tracks settings, smoother use of MGU and SGU (BB files) within PowerTracks, and more with the latest PowerTracks Pro Audio 2024 update!

Learn more about this free update for PowerTracks Pro Audio & download it at www.pgmusic.com/support_windows_pt.htm#2024_5

The Newest RealBand 2024 Update is Here!

The newest RealBand 2024 Build 5 update is now available!

Download and install this to your RealBand 2024 for updated print options, streamlined loading and saving of .SGU & MGU (BB) files, and to add a number of program adjustments that address user-reported bugs and concerns.

This free update is available to all RealBand 2024 users. To learn more about this update and download it, head to www.pgmusic.com/support.realband.htm#20245

The Band-in-a-Box® Flash Drive Backup Option

Today (April 5) is National Flash Drive Day!

Did you know... not only can you download your Band-in-a-Box® Pro, MegaPAK, or PlusPAK purchase - you can also choose to add a flash drive backup copy with the installation files for only $15? It even comes with a Band-in-a-Box® keychain!

For the larger Band-in-a-Box® packages (UltraPAK, UltraPAK+, Audiophile Edition), the hard drive backup copy is available for only $25. This will include a preinstalled and ready to use program, along with your installation files.

Backup copies are offered during the checkout process on our website.

Already purchased your e-delivery version, and now you wish you had a backup copy? It's not too late! If your purchase was for the current version of Band-in-a-Box®, you can still reach out to our team directly to place your backup copy order!

Note: the Band-in-a-Box® keychain is only included with flash drive backup copies, and cannot be purchased separately.

Handy flash drive tip: Always try plugging in a USB device the wrong way first? If your flash drive (or other USB plug) doesn't have a symbol to indicate which way is up, look for the side with a seam on the metal connector (it only has a line across one side) - that's the side that either faces down or to the left, depending on your port placement.

Update your Band-in-a-Box® 2024 for Windows® Today!

Update your Band-in-a-Box® 2024 for Windows for free with build 1111!

With this update, there's more control when saving images from the Print Preview window, we've added defaults to the MultiPicker for sorting and font size, updated printing options, updated RealTracks and other content, and addressed user-reported issues with the StylePicker, MIDI Soloists, key signature changes, and more!

Learn more about this free update for Band-in-a-Box® 2024 for Windows at www.pgmusic.com/support_windowsupdates.htm#1111

Band-in-a-Box® 2024 Review: 4.75 out of 5 Stars!

If you're looking for a in-depth review of the newest Band-in-a-Box® 2024 for Windows version, you'll definitely find it with Sound-Guy's latest review, Band-in-a-Box® 2024 for Windows Review: Incredible new capabilities to experiment, compose, arrange and mix songs.

A few excerpts:
"The Tracks view is possibly the single most powerful addition in 2024 and opens up a new way to edit and generate accompaniments. Combined with the new MultiPicker Library Window, it makes BIAB nearly perfect as an 'intelligent' composer/arranger program."

"MIDI SuperTracks partial generation showing six variations – each time the section is generated it can be instantly auditioned, re-generated or backed out to a previous generation – and you can do this with any track type. This is MAJOR! This takes musical experimentation and honing an arrangement to a new level, and faster than ever."

"Band in a Box continues to be an expansive musical tool-set for both novice and experienced musicians to experiment, compose, arrange and mix songs, as well as an extensive educational resource. It is huge, with hundreds of functions, more than any one person is likely to ever use. Yet, so is any DAW that I have used. BIAB can do some things that no DAW does, and this year BIAB has more DAW-like functions than ever."

Forum Statistics
Forums66
Topics81,644
Posts735,398
Members38,526
Most Online2,537
Jan 19th, 2020
Newest Members
theyearofjess, OlvaJownDay, Tranner Track, Ely Bass, Barking
38,525 Registered Users
Top Posters(30 Days)
MarioD 183
DC Ron 101
dcuny 89
rsdean 71
Today's Birthdays
There are no members with birthdays on this day.
Powered by UBB.threads™ PHP Forum Software 7.7.5