Tuesday, January 28, 2014

Deploy Audio Content fo Garageband in Mavericks

Well, the basic deployment is easy.

Download the app from the app store and deploy it using images, software distribution, whatever you like. Just make sure you have enough licenses.
Which ist no longer that big of a problem since GarageBand comes free with new Macs….

The problem however is, that Garageband 10.x wants to download additional stuff when GarageBand ist started the first time.

This is an issue and annoying because
a) it is 1.4 GB and is not using the local software update or caching server
b) non-administrators are not able to install this package.

When started GarageBand begins to downloads this:

http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GarageBandCoreContent.pkg

That means, if you download this package, you can deploy it right along with GarageBand.

Enjoy.

Update:

With Garageband 10.0.2 there seems to be some additional content available.

It downloads this plist: http://audiocontentdownload.apple.com/lp10_ms3_content_2013/garageband1002_en.plist?app=GarageBand&ver=10.0.2&country=CH&language=de&o If you examine this plist, you can find out, which packages are installed. Garageband downloads and installs these packages:

MAContent10_GarageBandCoreContent.pkg
MAContent10_GarageBandPremiumContent.pkg
MAContent10_GB_StereoDrumKitsSongWriter.pkg
MAContent10_GB_StereoDrumKitsAlternative.pkg
MAContent10_GB_StereoDrumKitsRock.pkg
MAContent10_GB_StereoDrumKitsRnB.pkg
MGBContentCompatibility.pkg


To get them, download these packages:

http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GarageBandCoreContent.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GarageBandPremiumContent.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GB_StereoDrumKitsSongWriter.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GB_StereoDrumKitsAlternative.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GB_StereoDrumKitsRock.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MAContent10_GB_StereoDrumKitsRnB.pkg
http://audiocontentdownload.apple.com/lp10_ms3_content_2013/MGBContentCompatibility.pkg

Tuesday, January 21, 2014

How to split a PDF with spread pages to single pages

I recently bought a book that is not available as eBook.

As I wanted to take the book with me on my iPad I thought that I would digitize it and convert it to an eBook.

Ok. Sounds easy.
It is not.

First it it is not that easy to scan a complete book with around 330 pages.
But ok. That was doable. I used a Canon Multifunction Copier 'iR-ADV C5030'.

I scanned around 100 pages and sent the PDF as Email.

Now comes the interesting part.

I used Adobe Acrobat Pro version 10.1.9 do join the PDF.
No now I had a complete document of the book.

But wat, there's more.
The thing is that when scanning this way, I get a PDF that contains both the even and the odd page of a book on a singe page within the PDF.
This is not what I want.

So here's the trick:

The scan was quite precise. So I used the function 'Recognize Text > In this File'.
This not in order to get the text. What this function also does is rotate the scans so that the text is horizontal.
The next step was this: Save the PDF and make a copy of it. Open the copy and crop the pages so that only the even pages are left. Make another copy and crop it so that only the odd page numbers are left.
So OK. Now we have tow PDF files. One contains all pages with even page numbers, the other one contains all the pages with odd page numbers.
Fine. But now I need to merge these two files. Having used AppleScript a lot, I quickly came up with a script that does just that:


property pages_even : "scans_even.pdf"
property pages_odd : "scans_odd.pdf"

tell application "Adobe Acrobat Pro"
activate

set c to number of pages in document pages_odd
repeat with i from 1 to c
set b to (i * 2 - 1) as integer
-- display dialog "inserting page " & i & " after " & b
insert pages document pages_even after b from document pages_odd starting with i number of pages 1
end repeat
end tell


This takes every page of the odd pages and inserts it in the right place in the even document.
This way I end up having a PDF that contains single pages instead of spread pages.