Here’s a practical example of using the ARD ruby gem to help organize your Apple Remote Desktop Commands.
Let’s say you already have one saved command, named “command1”.
But you want to move “command1” into a folder named “Folder1”.
Create a new folder
Let’s create the folder by using the ARD gem, with this command:
#usage ARD.create_empty_folder("Name of new folder")
Move a command into a folder
Now lets move “command1” inside “Folder1” with this command:
#usage ARD.move_command("Name of command to move", "Name of folder to move to")
“command1” is now inside the folder. You can run this command as many times as you want just replacing the name of the command, until you have everything you want moved into a specific folder. For example .. a folder named “Printer Commands” that has four commands that help you administrate printers.
Best practice is to make sure Apple Remote Desktop is closed while running the commands, then open afterwards to see results. If the “Send Unix Command” window is open in Apple Remote Desktop, you may receive an error while running the command.