Modifying nvram
Modifying nvram
- Subject: Modifying nvram
- From: Patrick Gallagher <email@hidden>
- Date: Fri, 5 Mar 2010 16:23:36 -0500
Any idea why the following script does not modify the nvram? I can see from the replies window that it is laying out the command properly and no errors are returned. I just don't see the result with a "nvram -p" in terminal.
set assetTagResponse to display dialog "Enter the EC Asset Tag in all CAPS and NO spaces" default answer "ECAS-123456" buttons {"Cancel", "OK"} default button {"OK"}
set assetTag to text returned of assetTagResponse
do shell script "defaults write /Library/Preferences/com.apple.RemoteDesktop Text2" & space & assetTag with administrator privileges
do shell script "/usr/sbin/nvram ASSET=" & quoted form of assetTag with administrator privileges
--
--------------------------------------
Patrick Gallagher
Mac Admin Corner
Web:
http://macadmincorner.comTwitter: @patgmac
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden