• 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
IRController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IRController


  • Subject: IRController
  • From: Ralf <email@hidden>
  • Date: Fri, 17 Dec 2010 02:23:57 +0100

Hi Everybody
I want to enable and disable the IRController by script.
I found following script but it just doesnt work. I have absolutly no idea why, if you have please contact me.




try
set currentValue to (((do shell script "defaults read /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled") as integer) + 1)
set status to item currentValue of {"disabled", "enabled"}
set button to (display dialog "Set remote control infrared. Right now it is " & status & "." buttons {"Cancel", item currentValue of {"Enable", "Disable"}} default button 2)
do shell script "defaults write /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled -bool " & item currentValue of {"yes", "no"} with administrator privileges
end try
_______________________________________________
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
  • Follow-Ups:
    • Icon bounds on the destop
      • From: Ronald Hofmann <email@hidden>
  • Prev by Date: Re: Was: Re: What Use Autofill
  • Next by Date: Re: Was: Re: What Use Autofill
  • Previous by thread: Re: How to get all file paths from the clipboard
  • Next by thread: Icon bounds on the destop
  • Index(es):
    • Date
    • Thread