Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yogi477

macrumors regular
Original poster
Jun 8, 2002
196
0
England
I was just wondering if any of you lot use Sony Ericsson Clicker with your T68i as I have started using it and wondered if there are any more than the basic scripts available. and if so which do you find most useful? Also, is it possible to use a script to shut down your mac...basically so I can use my mac as a hi-fi then switch it off when I want to sleep.
Thanks in advance
 
hm,

Shuting down will probably be a bit of a problem

The Clicker works in such a way that it controls apple scripts.

apple script can access a lot of functions in applications.

however the only application that I right now know, is the terminal, sporting the the command

%shutdown -h now

however, you need to be root to be allowed to run it

%sudo shutdown -h now
Password:

I wouldn't know how to enter the pw via the clicker or apple script in the event.

you could try to change permissions on shutdown..

open terminal
%sudo chmod 755 /sbin/shutdown

but as it is a system file, it might still not work, or do some kind of harm (I haven't tried it anyway.)

another way to access it would be to add yourself to the 'operator' group, but you wont want to do that.

anyway, best would be to find a way in applescript to shutdown the computer, the rest should then be trivial ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.