Open JRHutson opened 8 years ago
@JRHutson I've not dealt with those before. I can take a look when I get a chance.
Are you wanting like serial number to device name?
@brandonusher Serial Number to device name is in one of the examples. What I'm hoping to do is parse a spreadsheet of serial numbers and asset tags that we scan from devices and then have it assign the corresponding asset tag as the name. I'm going to take a look at the Apple ID script and see if I can wrap my head around how it's parsing the csv. It's something that I haven't implemented on my own, so I wanted to see if you would be open to being a resource.
@JRHutson Sure, just let me know if you need help
@brandonusher Am I understanding how the AppleID script works correctly. It seems like it's breaking apart the columns of the CSV and then selecting individual items from each column using the same function. Does it just know based on context that "item 1 of usersfile" is a column of data while "item loopCounter of appleIdSecretQuestion1ColumnContents" is pulling an item from a list?
@JRHutson If I remember correctly, the columns are fixed and the first row is excluded. The header is merely there for the user who is inputting the information for the account.
The script breaks it apart and knows the first value is the email, the second value is the password etc etc all by hardcoding. That wasn't my design, but I'm not sure AppleScript can do much better than that either.
@brandonusher Have you dealt with any of these scripts before? (https://configautomation.com/handlers.html) I'm going to try to assemble a script that will let us assign device names from a spreadsheet rather than the options available in Configurator 2. Might need some help as I'm putting it together.