Problem with AppleScript
Problem with AppleScript
- Subject: Problem with AppleScript
- From: Terry Sheltra <email@hidden>
- Date: Mon, 11 Dec 2006 15:37:29 -0500
Hello everyone,
I wrote a small AppleScript utility to put on a new user's Mac that
will automatically open up System Preferences in the Accounts pane,
where they can change their password. The weird problem I am having
is that the script works with no problems on my PowerBook G4, but
when I run it on an Intel MacBook or MacBook Pro, I get the following
error message:
NSReceiverEvaluationScriptError: 4
The script is as follows. Sure hope someone can help me out!
Thanks!
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
application "System Preferences"
delay 0.5
tell menu bar 1
tell menu bar item "View"
tell menu 1
click menu item "Accounts"
end tell
end tell
end tell
end tell
end tell
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
application "System Preferences"
delay 1
click button "Click the lock to make changes." of window "Accounts"
end tell
end tell
Terry Sheltra, Public Mac Support Technician
University of Virginia School of Architecture
w:434.982.3047 e:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden