Hello All,
I am seeking help from anyone who might have an idea as to how to create a USB thumb-drive passkey application. My idea is that when a particular USB thumb-drive is in the computer, the admin can skip over having to enter the system name and the password prompts… basically whenever a prompt comes up while doing updates if the usb drive is plugged in and the applescript running, then the system will automatically enter the account info and password automatically.
I think what is needed is something along the lines of the following applescript…
set privileges to do shell script user name "Blake Elementary School" password "abc123" with administrator privileges
Then maybe having a window stay open with a quit button that will eject the USB thumb-drive, when the tasks are finished. Something along these lines…
Calling this application “USB_admin_key”
tell application "GrowlHelperApp"
set the allNotificationsList to {"Test Connection"}
set the enabledNotificationsList to {"Test Connection"} -- ** just one turned on, the other not.
register as application "USB_admin_key" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "USB_admin_key"
-- Send Growl Notification...
notify with name "Test Connection" title "USB_admin_key application running" description "USB_admin_key application running you may now do your updates" application name "USB_admin_key"
end tell
repeat
set question to display dialog "Are you ready to eject the USB_admin_key application?" buttons {"Yes", "No"} default button 2 with icon caution with title "Do you agree to follow the computer rules?"
set answer to button returned of question
if answer is equal to "Yes" then
display dialog "Please disconnect the USB Drive." buttons {"�"} with icon stop giving up after 4
tell application "Terminal"
activate
do script "disktool -e disk1"
delay 10
do shell script "drutil tray eject"
delay 10
do shell script "drutil tray close"
quit
end tell
exit repeat
else
display dialog "USB_admin_key application is still in use" buttons {"�"} with icon stop giving up after 4
end if
end repeat
Normally I would not mind having to enter the username and password all the time, but when I am doing updates for 40+ computers is can take a very long time. That is why I was thinking having the admin carry a USB drive with this application running from it would be perfect.
Oh the computers are all running the latest version of 10.5 .
Hopefully this is possible.
Thanks for your help everyone.
Regards,
Paul Allen
Model: iMac
Browser: Safari 530.19
Operating System: Mac OS X (10.5)