Comments

Share your ideas

Pyby's picture

Pyby

Joined: Feb 29, 2012

Thanks Aaron for this

Your rating: None

This comment has been moved here.

Top
bwbos's picture

bwbos

Joined: Nov 10, 2011

Status collum

Your rating: None (1 vote)

This comment has been moved here.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Thanks

Your rating: None

Many thanks, Mr. Freimark, for taking time out of your assuredly busy schedule to update my mess of a script. I, and I'm sure the rest of the community, thank you. If I ever get time to make upgrades to it I shall definitely grab the latest version from git and then push my changes back up.

I should upload some of my companion scripts, such as one that draws from the same .csv file as the ID creator to send the Apple ID passwords to the associated email accounts. With the email companion script end users can finish the verification of their Apple IDs themselves, and you don't have to manually notify individuals of their new credentials.

Top
thomrburg's picture

thomrburg

Joined: Jun 8, 2012
WWW

Thanks!

Your rating: None

Ramping up for a Middle School 1:1 deployment in the Fall and we were desperately needing something exactly like this.

--
Thomas Burgess
@thomrburg | www.thomrburg.tk

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Security Question Misspelled

Your rating: None

Please note...

The first choice for security question 3 that they tell you to copy " exactly as typed below." is actually typed wrong. It should be "cars" instead of "cards".

Thanks for this great script. I hope to get it to work.

Top
pkartheiser's picture

pkartheiser

Joined: Jun 11, 2012

First off I want to say thank

Your rating: None

First off I want to say thank you for this script, this is fantastic and will help the business I work for clear one more hurdle.

second, I ran into one error with question three "In which city did your mother and father meet?" After running through a couple times I noticed a typo in the example text above where "your" is written as "you". Simple fix, just giving a heads up Smile

Third, as for getting whitelisted, does an Apple business team rep have this ability? Also can we stay on this list for a long period of time?

Top
pkartheiser's picture

pkartheiser

Joined: Jun 11, 2012

Verification email script?

Your rating: None

Has anyone created or know where I can find a script that can take care of the verification process as well? We have our Apple ID's set up to send all verification emails to a catch all, which is loaded up into the mac mail app. Unfortunately, I am not savvy enough with the script editor to write up something myself to take care of this and our Devs have enough on their plates as it is. Thanks!!

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Requesting Whitelisting

Your rating: None

Your business rep should be able to put you in touch with an Apple Engineer, who will then contact the iTunes department within Apple to remove the anti-spam measures from your public IP and email domain (which you will need to provide.) The whitelisting lasts one month, and then must be requested again.

There is no "official" system for this unfortunately. Hopefully, after enough time passes and enough of us request whitelisting, this script will no longer be required and we will have an official method for requesting Apple IDs en-mass. I would like nothing more than for all my head-scratching and code-writing to be obsoleted.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Companion Script

Your rating: None

I have a companion script that takes the users csv used to create the accounts and sends the passwords to the email addresses associated with each ID, but that's as close as I've come to a solution to this problem. The users still have to verify their accounts themselves, but at least they have all the information on hand to do so. The problem is some email hosts flag your repeating email as spam, and kill the send. I had trouble using our Google Apps for Education email system to send the emails within our own domain.

Anti-spam measures shall be the death of me, I swear.

I'll try to scrape out some free time to clean up the companion script a bit, and then see if Mr. Freimark is interested in putting that on the github as well.

Just out of curiosity, when you say you are sending all your verification email to a catch-all, how exactly are you accomplishing this?

Top
pkartheiser's picture

pkartheiser

Joined: Jun 11, 2012

Catch all

Your rating: None

While I didn't set up the catch all myself I believe this is how we accomplished it
http://dbpmarketing.com/senuke/solutions/how-to-setup-a-catch-all-email-...

Basically we have our own gmail domain, and tell it to catch any emails that end with our domain @XXXXXXX.com then we forward those emails to a specific email. So when I create an apple ID i create the email based off the Asset ID of the iPad e.g. iPad asset 1234 will be ipad+1234@XXXXXX.com then I log into the email we set to receive all caught emails and I get the verification email from apple saying ipad+1234 needs verification. So far it has been an effective method, we can usually set up an iPad to our needs with activated apple ID between 7 to 10 minutes each. With this new batch script, apple configurator, and a couple 7 port USB hubs I am hoping to significantly reduce this build time.

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Script Not Working

Your rating: None

There has to be something wrong with the script as it sits on GitHub. It errors out after the second Apple ID every time. I'm so anxious to see this working. Has anyone accomplished this?

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

I'll run it through the debugger

Your rating: None

Let me take a look at it. I've not had a chance to run it since it was uploaded.

...My dearest child, I shall never be free of you shall I?

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Awesome!

Your rating: None

Thank you!

I'm currently running the script over and over, creating two accounts at a time. My whitelist status isn't going to last forever. It's still faster than manually.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Third in the list every time?

Your rating: None

Haha, you are a man of supreme patience.

So, it fails on the third account in the list you say, no matter how many users are in the CSV?

Peculiar.

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Yes

Your rating: None

Yep, I even wrote a shorter CSV with different content in a plain text editor to test it out.

Top
thomrburg's picture

thomrburg

Joined: Jun 8, 2012
WWW

True Story

Your rating: None

Fails on the 3rd account every time. I, too, have double checked the syntax on the csv and that's not the issue here.

--
Thomas Burgess
@thomrburg | www.thomrburg.tk

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Thanks

Your rating: None

Thanks for chiming in so I don't seem crazy.

Top
Aaron Freimark's picture

Aaron Freimark

Joined: Nov 6, 2010
WWW

Now works for THREE Apple IDS

Your rating: None

I confess. I only tested with two Apple IDs. But thanks to your persistent bug reports, and confirmations, I took a look tonight. I found the bug that made it fail at the end of the second Apple ID. So now I can confirm that it works for THREE Apple IDs. (Yes, it probably works for more, too. But I won't pretend that I tested it!)

As a bonus, I tested with iTunes 10.6.3, which was released today. There were no apparent changes for Apple ID scripting between 10.6.1 and 10.6.3, so the script allows both.

Update from GitHub again and let me know how it goes.

--
Aaron Freimark, Enterprise iOS founder & GroundControl CEO

Top
thomrburg's picture

thomrburg

Joined: Jun 8, 2012
WWW

Sweet!

Your rating: None

Thanks for looking into it Aaron...I'll try it out tomorrow and report back.

-T

--
Thomas Burgess
@thomrburg | www.thomrburg.tk

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Good deal

Your rating: None

I'll try it on a few hundred IDs when I get home later.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Murphy at work

Your rating: None

Never fails. Celebration and a cessation of testing always occur just shy of actually triggering the critical bug. You should have seen version one of this script. It was considerably more concise, and operated on the iCloud system prefpane instead of iTunes. It worked FLAWLESSLY for about six or seven test accounts.

I celebrated.

Then, a bit later, I decided to make a little tweak and ran it for a few more accounts. At account ten the gates slammed shut -the prefpane's local antispam measures had kicked in.

I wept.

Days of work and hundreds of lines of code had to be thrown out as totally useless.

Top
Mitch Boston's picture

Mitch Boston

Joined: Jun 8, 2012
WWW

Script Completed Sucessfully

Your rating: None

It took about an hour per 100 accounts.

Thanks so much guys. Great work!

Top
staciesul's picture

staciesul

Joined: Jun 27, 2012

Thanks and iTunes 10.6.3 Issue

Your rating: None

First off, thanks so much for posting this.

I am running into the following error using iTunes 10.6.3:
error "System Events got an error: Can’t get scroll area 3 of window 1 of application process \"iTunes\". Invalid index." number -1719

It seems to happen after iBooks is opened in iTunes.

Any help would be appreciated.

Top
staciesul's picture

staciesul

Joined: Jun 27, 2012

Found a fix

Your rating: None

I did a global find and replace of "scroll area 3 of window 1" and replaced it with "scroll area 2 of window 1" and it worked!

Also helpful tips, since I had to re-run it so many times to test, I also found that iTunes needs to be closed and the initial page needs to be set to the home page (before closing it) in order for the script to work. I also had to log out of my default user account.

Thanks again!

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

New Bugs

Your rating: None

The issues with iTunes having to be set to home page and signed out of your Apple ID are bugs with the new version. The script is designed to sign out any active account as one of its first steps, and it should go to iBooks regardless of starting location.

Once I get some free time I'll take a look at it, or perhaps someone else will beat me to it.

Top
cle's picture

cle

Joined: Jun 28, 2012
WWW

Thank for the script but doesn't work here

Your rating: None

Hello everybody,

Thank you for this script.

But it doesn't work on my Mac with Mac OS X 10.7.4, iTunes 10.6.3 64bits and in France .
After have made a global replace of "scroll area 3 of window 1" and replaced it with "scroll area 2 of window 1"
The script correctly open iTunes and the iBook's page
I've sign out my account and put iTunes on the home before quit it.
But the script aren't be able to verify the iBook's page in itunes.
I'll try with the French iBook's link but the issue were the same.
If i force the script to continu each step are failiing.

Is it a problem with the language? Is the script only working under US/UK Mac OS X ? Or US/UK iTunes?
I've also try with the US Appel Store, without success too.

Thanks for your help.

Cle

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Running in other languages

Your rating: None

Ahh, yes, running in another language would certainly cause problems. Because the script is a GUI script, it is "reading" certain interface elements. When I originally built the script I never dreamed individuals from other countries would ever use it. Heck, I never thought anyone even down the road would use it. I can probably fix most of those issues with numerical references rather than string-based, but I will likely have to do a little bit of trial-and-error with you if that's alright, since certain items (like the name of the iTunes application among other things) must be referenced by name.

In addition, I've never tried parsing a CSV with the diacritics and ligatures of French, so that may also cause issues. It shouldn't, in theory, but like I said I've never tried it.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Temporary work-around

Your rating: None

It looks like you can force individual applications to open in different languages with a quick bit of plist editing or a nifty app. The most reliable method for me to fix the script would be to build in a section to force iTunes open in english on run, and then reset to the default language on close - otherwise I'd have to localize the script for every language that it would be run under. Until the script is updated you may want to try one of the methods above to force iTunes open in english.

I think the store may still be in a different language however, which presents a few problems.

I'll keep you guys in the loop.

Top
cle's picture

cle

Joined: Jun 28, 2012
WWW

Running in other languages

Your rating: None

Thank for your feedback,

I can send you all French's printscreen from the different iTune step, the iBook Page, when we click on "Free App", "Creat an Apple ID" and the different step for the ID creation if you want to take a look.

I think there are minors changes to make in the script, but i'm not developer and I don't understand how it count elements on the page

I'll try understand if i found something, i'll tell us

Thank again

Top
cle's picture

cle

Joined: Jun 28, 2012
WWW

Temporary work-around

Your rating: None

I will try to change iTunes language and i'll let you know

Top
cle's picture

cle

Joined: Jun 28, 2012
WWW

That's working

Your rating: None

it's working but only with iTunes in US language and US AppStore.
i'll try to make it work with FR AppStore, but the French Apple ID form is different.
For exemple, in the US AppStore there are 3 secrets questions with drop-down menu and in the FR AppStore, only one blank area.

Thanks again for your help

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Hmmm...

Your rating: None

Yes, that does present something of a problem. It's fixable, but it will take some reshuffling/code writing to make it work. I'll try to carve out some time to work on it.

Top
Robzilla's picture

Robzilla

Joined: Jul 25, 2012

This looks fantastic, UK support?

Your rating: None

First off, this looks fantastic. Just imagine how many hours you're saving people from having to create accounts manually!

That's what I found most exciting about this, but unfortunately I've run into a minor snag. I am in the UK, and when you set your location to United Kingdom on the manual signup form, you get presented with different address fields.

For example, in United Kingdom:
Additional field: Address Line 3 (optional)
State/Province: becomes optional
Zip code becomes Postal Code and is optional.

Would you be able to add support for the UK, as well? If not I've got a very tedious few days ahead of me making them manually Stare

Thankyou for making this awesome tool, I hope it's relatively simple to get the script to work for the UK, too!

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Definitely something I want to do

Your rating: None

I'm honestly quite surprised just how much variation there is between between sign-up forms. I expected language differences and localization related stuff, but not some of the major structural things. I've been thinking about how to best address the problem at a conceptual level, rather than just a band-aid fix, and I think I have a pretty good idea how the script can be made simultaneously more robust and more flexible.

I'm planning on writing a whole new section where you would paste pre-defined strings of text into the various iTunes sign-up fields *once* while the script "watched", and it would then learn the various locations to put things *dynamically*, instead of having to manually re-code the sign-up portion of the script every time a minor variation was encountered. This should get around ALL (or nearly all) the language and location issues while simultaneously circumventing any problems that would crop up from Apple changing the structure of the form. It should even be capable of adapting to the addition or removal of entire fields without any code changes at all, if I can get the section written properly.

There are a few kinks to work out with this idea, such as what to do with pop-up buttons (shudder.) Those are always a pain.

The trick is finding time. My job description is rather broad, and script writing is just one of the many hats I wear (and I must admit, on the weekends I'm just utterly brain-dead.) However, I'm going to have to work on the script a bit anyway within the next four weeks, since our own giant iOS rollout looms large (minimum of 800 iPads, possibly as many as twice that.) When the day comes around that I have to work on the script for our internal use, I plan on giving it a good old-fashioned overhaul to address all the other problems too. I'm thankful for all the fantastic feedback you guys have been providing. Without it I would be totally oblivious to these issue. Again, when I first wrote this unwieldy blob of code I never *DREAMED* it would go world-wide.

We were actually visited by our Apple Rep and Engineer today (your post hit my inbox as they were sitting in the office,) and they told me that this script is supposedly being used in the Los Angeles school district now. I had to pick my jaw up off the floor. They're roughly 1.623 gazillion times larger than us, and it was humbling to think that something I wrote with the sole intention of being used maybe twice a year, and even then only within our district, is now being used (and probably cursed at) by an entity so large.

Top
JMPATLANTA's picture

JMPATLANTA

Joined: Jun 13, 2012

It's being used on a very large scale by many.

Your rating: None

Your script is being recommended by many influential folks.

Top
pkartheiser's picture

pkartheiser

Joined: Jun 11, 2012

New Id creation security questions

Your rating: None

As always I would like to thank you again for this script, I have used it to create hundreds of apple ID's and it has dramatically reduced the time it takes for me to get our iPads ready for service. I noticed that the three security questions in iTunes have changed, I have not yet tried to input those new questions and answers into the CSV, Will the script still work with these new questions?

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

In theory

Your rating: None

It should. Just make sure you match the text of the question exactly in your CSV.

Top
JMPATLANTA's picture

JMPATLANTA

Joined: Jun 13, 2012

OS X 10.8 Moutain Lion?

Your rating: None

Has anyone tested script with Mountain Lion yet? If not, I will be attempting it's use in the next few hours. I will let you know my findings.

Top
JMPATLANTA's picture

JMPATLANTA

Joined: Jun 13, 2012

OS X 10.8 Moutain Lion?

Your rating: None

Ok, just upgraded to ML. So far ran the first dry-run and seemed to work except for the updated Security questions Apple has implemented. Angry

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

New Security Questions

Your rating: None

Well that's a bummer. They must have changed the structure of the whole page slightly. What I wouldn't give to be scripting a cocoa GUI rather than a webpage...

Those should be fixed when I change the sign-up portion of the script to use dynamic identification of the fields rather than static (see my comment above about language differences.)

After I rebuild that portion of the script it should be vastly more resilient to these sorts of changes.

Top
Robzilla's picture

Robzilla

Joined: Jul 25, 2012

Success in the UK

Your rating: None

Hi, thought I should give an update. I found this script last week, tried it and realised it wouldn't work in the UK because the form is structured differently from the US.

Well, thanks to the way it is written with plenty of error checks and useful error messages, I was finally able to make it work in the UK! I've never used Applescript before, and I don't consider myself a programmer to any extent, but I was able to rejig the script to work for me. I took me almost 2 days, but if you run it in "dry run" mode you can gradually fix the differences.

Here's the problems I remember:

  • Terms and Conditions page wouldn't work. I pretty much gave up with this. I couldn't figure it out, so I recorded an Automator application and ran it from the script to do the clicks for me. A complete hack, but I don't know any better!
  • The questions were different. I just copied what they were from the iTunes form into the CSV.
  • Date of birth is dd/month/yyyy. The American format is month/dd/yyyy. I fixed this by swapping the date and month around in the CSV, then finding every reference to date and month in the script and swapping them around. This was probably a messy way to do it, but it worked!
  • Spam email boxes were set to be checked. I'm talking about the "Would you like to be contacted about special offers etc" checkboxes. They're unchecked by default, the script checks them. I just removed those button presses entirely.
  • Title wouldn't set to Dr. I just changed and reference to "Dr." to "Mr.". Solved!
  • Phone number: area code went into County, phone number went into Postcode. Since the data went into the wrong fields, I could just swap the order of the instructions, and the button references (eg: button 1 of group 3 of ui element 2 etc).
Top
Lame33's picture

Lame33

Joined: Jul 31, 2012

Anyone else getting these issues

Your rating: None

The script says it completes without error, but it does not work properly.

I made my CSV with only 3 or 4 users to test and it was only creating the account for the last user on the CSV.

The last few times that I have tried it, I now get the following error from iTunes:

"Your request is temporarily unable to be processed. Please try again later"

We got permission to create accounts from Apple, so they should not be blocking us. I even tried using another IP just to see with no positive results.

Any idea?

I*m using 10.7.4 and iTunes 10.6.3

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Never Seen That Behavior Before

Your rating: None

That's a new one on me. Does it tell you that the request is unable to proceed just on that machine, or does it happen on multiple machines?

Also, when you say that its only creating the account for the last user, do you mean that it's only filling the fields with information for the last user, or only the last user is succeeding?

Oh, one last thing, are you running the script from within the Applescript editor, or are you saving it as an app and then running it that way?

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Glad to hear someone in the UK got it working

Your rating: None

"A complete hack, but I don't know any better!"

Haha, the whole script is a complete hack. Welcome to the club. Smile

I've been trying to work on the script for the last few days. Finished building most of the interface tweaks necessary to better support all the little differences between countries. Once it's done the script will use variables to reference the fields, instead of hard-coded pointers. You'll 'teach' the script once, and from then on out you can just let it run. I also hope to build an exporter, so after one individual teaches the script for a certain country/change to the signup process, the field locations can be saved to a file and shared with others.

Top
JMPATLANTA's picture

JMPATLANTA

Joined: Jun 13, 2012

Updated code?

Your rating: None

I went to github to get the latest versions you've been working on but decided to come back here to make sure before downloading. The update field on github lists the files as being old and was wondering if it's just erroneously posting that and the new code is available there?

Please advise if the new version is available or is located in a different location.

Very much appreciated, JP

Top
Robzilla's picture

Robzilla

Joined: Jul 25, 2012

Next version sounds ideal

Your rating: None

That sounds great, Eight_Quarter_Bit.

I actually ended up making less Apple IDs than I thought I would have to. So, for anyone else in the same situation:

Apple Volume Purchase Program not available in your country? Reconsider: do you really need all those Apple IDs?
At the moment, there's no technical reason you can't buy an app once, and put it on as many devices as you want. Sure, there's a legal problem with that, but we can satisfy that in a different way:

  1. Create an email address, eg: appleids@mybusiness.com
  2. Create as many alias addresses under that address as you need, eg: appleid01, appleid02 etc
  3. Create an Apple ID with that email address, link your business credit card to it.
  4. When you need to buy an app, open up iTunes, sign into your account created above, find the app you want to buy, then click the little down arrow on the Buy button. You will see the option to "Gift this app...". Click it.
  5. Gift the app to as many alias addresses as necessary. You don't need to redeem the gifts for them to be charged to the credit card.

Hey presto, you've paid for the apps you have installed! Now this isn't ideal for everyone, but it'll work.

Top
Lame33's picture

Lame33

Joined: Jul 31, 2012

Oops - false alarm

Your rating: None

It's now working great and saving me from hours and hours of data entry.

I think my issue was mostly self inflicted. I had forgotten that we got our whitelist from Apple to create the accounts based on the email and not the school IP. The email changed after days of wrangling with Yahoo and Google over MX records on a subdomain.

It's nice to discover that Yahoo hosting does not give you real subdomains, just redirection to a folder, and no settings beyond the primary domain for setting MX records. Google does not like that and refuses to verify those accounts. Fun times.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Shared vs Unique Apple IDs

Your rating: None

Yea, we considered doing something similar in our own deployment. Good tip.

The reason we moved away from using shared IDs was, among other things, you loose iCloud-based backup and restoration. We aren't doing any local syncing/backup for a number of reasons (one of which being that it's extremely easy to "cross contaminate" iOS devices that should have different configurations when they are synced.) We also (due to the money the iPads were purchased with) can't move an iPad with a kid between schools, so at the beginning of every school year we have to wipe every device (mercifully easy with Casper) and have the students run back through setup. Without iCloud backup, restoration would be difficult at best.

It's a complicated question, with many, many facets. Definitely something to consider carefully before moving forward with either shared or unique IDs.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Updated Code

Your rating: None

I haven't pushed anything back to github yet. I'm still making big changes, experimenting, breaking things, and being generally irresponsible. There are also massive holes that still need to be filled before the script is actually functional with its new features.

Yesterday afternoon I overcame one of the bigger conceptual hurdles relating to field referencing. I have one more big conceptual problem to figure out (the best way to iterate through all the available fields on the page for discovery purposes), and then it's just a matter of writing/integrating everything, bug testing, and implementing some of the simpler features in a reliable manner.

I've also finished writing/re-writing some of the GUI, to give me a place to drop a few of the new tools and features.

It's getting there, but it's not there yet.

Top
JMPATLANTA's picture

JMPATLANTA

Joined: Jun 13, 2012

Anyone attempt bulk ID creation today?

Your rating: None

Anyone attempted account creation via script today? I am awaiting Apple to white-list my mail domain but I attempted to do (2) account run while waiting the 72 hours but never received the Acct. Verification e-mails. Just wondering if anyone else is seeing similar.

Top

Recent Activity