MACSCRPT Archives

April 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 28 Apr 2006 01:16:14 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Probably the best think go to is just put the command into your /etc/ 
rc file.

This is a file called by the system at startup time.  You have to be  
careful when you edit this as it is used by the system at startup time.

You don't need to have the sudo in the command since it runs as root.

Also, you really should have a password on an admin account even if  
it does automatically login in.

-Mark
insomnia rules.
On Apr 18, 2006, at 2:04 PM, RJay Hansen wrote:

> When OS X 10.3 was released, many 3rd party video cards quit  
> working. A Unix command circulated the internet that would restore  
> functionality for many of these disabled cards, that being- sudo  
> nvram boot-args="romndrv=1".  My 2nd monitor run off an old iXMicro  
> TwinTurbo card fell victim to this but the Unix command fixes it  
> for me.
>
> I only have to run the command if I boot into OS 9. When I boot  
> back into OS X, the 2nd monitor is disabled until I run the command  
> and restart the machine. Not a big deal, but I finally had the  
> brilliant thought that I should write an Applescript to run the  
> command and save a bit of time and effort.
>
> It seems simple enough, but like most things w/Applescript, it  
> tends to be a bit more difficult than I think it will be. A bit of  
> research on Apple's site says I should not use "sudo" but instead  
> do something like:
>
> do shell script "command" user name "user" password "mypassword"  
> with administrator privileges. So I type up the script and try to  
> check its syntax and Applescript complains about the quotes around  
> "romndrv=1". So I read a bit further and see I need to add an  
> escape backslash for the quotes in the shell script like this /".  
> So now my script reads as follows:
>
> do shell script "nvram boot-args=\"romndrv=1\"" user name "rjay"  
> password "" with administrator privileges
>
> Now when I check syntax, it complains about "user name" following  
> the closing quote of the command (a property can't go after this  
> ""). Can anyone help?
>
> Thx,
>
> RJay
>

ATOM RSS1 RSS2