• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Modifying nvram
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.com
Twitter: @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

  • Prev by Date: Re: On the line GUI scripting
  • Next by Date: Re: Application Bundles
  • Previous by thread: Re: On the line GUI scripting
  • Next by thread: Word crashing sometimes on find and replace
  • Index(es):
    • Date
    • Thread