![]() pkg files, create a new text file called "installAllPackages.sh" and paste the following script into it In the folder into which you downloaded all of the. Not sure how it will work if located on an external drive-I never tested it :/ pkg files were located on the same hard drive to which I was installing them. if you can do something with it then let me know QUOTE: The below stuff I found on the internet but I have to say I could not get it to work - You can see that he has the PKGs in his Downloads folder. One shortcut is to change your password teporarily to a single letter which will certainly save a bit of time. Its an incredible pain to install those 500 PKG manually, not least because each one of them requires your password before they install. Set thePass to text returned of ( display dialog "Please Enter Your Password:" default answer "") repeat set getFileName to ( do shell script "cd " & quoted form of toInstall & " & ls -1 | head -n 1") set theFile to quoted form of (toInstall & getFileName) set theInfo to quoted form of ( do shell script "sudo installer -allowUntrusted -pkg " & theFile & " -target /" password thePass with administrator privileges) do shell script "echo " & theInfo & " > " & quoted form of (inStalled & "report.txt") do shell script "echo > " & quoted form of (inStalled & "report.txt") do shell script "mv " & theFile & " " & quoted form of inStalled set totalFiles to ( do shell script "cd " & quoted form of toInstall & " & ls -1x | wc -l") as integer if totalFiles is 0 then display alert "Process Complete!" return end if set theContentPath to POSIX path of ( choose folder) set toInstall to (theContentPath & "ToInstall/") set inStalled to (theContentPath & "Installed/") set totalFiles to ( do shell script "cd " & quoted form of toInstall & " & ls -1x | wc -l") as integer if totalFiles is 0 then display alert "No files where found!" return Simply select the "Content" folder, enter your password when prompted and let the process run. Open Applescript editor and copy the following script in there and run. One named "Installed" and one named "ToInstall" and place the. Click to expand.Create a folder called "Content" in there create two folders.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |