Apple Remote Desktop User Manual
Page 91

Chapter 3
Administering Computers
91
To execute an AppleScript using the Send UNIX Command:
This method uses the
osascript
command. For detailed information on
osascript
,
see the
osascript man
page.
1
Select a computer list.
2
Select one or more computers in the Remote Desktop window.
3
Use the Copy Items command to copy your script to the client computers.
4
After copying the script, choose Manage > Send UNIX Command.
5
Type or paste the AppleScript in the UNIX Command window, like this:
osascript -e '[First line of script]' -e '[Next line of script]'
For example, a simple script to create a folder and set its label would be entered (all in
one line) as:
osascript -e 'tell the application "Finder"' \
-e 'make new folder' \
-e 'set the name of the result to "New Folder"' \
-e 'set the label index of folder "New Folder" to 2' \
-e 'end tell'
6
Click Send.
The client computer executes the script.
- iMac G5 (2005) (96 pages)
- iMac G5 (96 pages)
- iMac (6 pages)
- iMac (76 pages)
- Mac Pro Computer (92 pages)
- Mac Pro (88 pages)
- Mac mini (96 pages)
- Mac mini (original) (106 pages)
- eMac (80 pages)
- eMac (10 pages)
- Power Mac G5 (Late 2005) (33 pages)
- Power Mac G5 (Early 2005) (120 pages)
- iMac G3 (38 pages)
- Intel-based iMac (Mid 2007) (76 pages)
- iMac G5 (iSight) (96 pages)
- Mac mini (Early 2006) (96 pages)
- Power Mac G5 (36 pages)
- Power Mac G5 (112 pages)
- Mac mini (Intel-based; Mid 2007) (72 pages)
- PowerPC G5 (15 pages)
- Macintosh Performa 578 (161 pages)
- Xserve G5 (94 pages)
- Xserve G5 (96 pages)
- Xserve (Hard Drive Replacement) (3 pages)
- Workgroup Server 8550 (121 pages)
- Workgroup Server 8550 (163 pages)
- iMac computer (120 pages)
- LC 560 (2 pages)
- Mac G4 (Video Card Replacement) (6 pages)
- Mac 6500/275 (232 pages)
- Mac Performa 5300 CD series (Tech informatiom) (8 pages)
- Power Macintosh 6500 Series (260 pages)
- eMac (Stand Installation) (13 pages)
- Remote Desktop (16 pages)
- Remote Desktop (203 pages)
- MAC PRO (Hard Drive Replacement) (5 pages)
- iMac G5, 20-inch (314 pages)
- iMac G5, 20-inch (22 pages)
- Power Macintosh 7100/66AV (132 pages)
- Xserve Late 2006/Early 2008 (PCI Expansion Card Replacement) (6 pages)
- Xserve (Blower Replacement) (5 pages)
- Xserve RAID (Locking Switch Replacement) (6 pages)
- Macintosh Performa 640 Series (DOS Compatible) (196 pages)
- Mac 9600 (237 pages)