airplay in ML older Mac!!!

Discussion in 'Mac Programming' started by avw5000, Jul 27, 2012.

  1. macrumors newbie

    Jul 27, 2012
    Hi I've been working on a project with airplay mirroring for old Macs I'm having trouble with terminal command if I get this terminal command we will be able to use airplay mirroring another macs.

    Background: i have found .plist files for airplay mirroring in /library/preferences

    i have a terminal command that goes

    cd /Library/Preferences hit enter

    sudo echo -n enabled > BrowseAllInterfaces 1

    but when i hit enter i get permissions denied

    Any idea on how to fix the permission so that we can all us this

    Attached Files:

  2. kryten2, Jul 27, 2012
    Last edited: Jul 27, 2012

    macrumors 6502a

    Mar 17, 2012
  3. macrumors newbie

    Jun 28, 2011
    stdin redirect not in scope

    You're using sudo to give root permissions to the command, however the stdin redirect '>' is not in scope of the command - so doesn't get the root permission. You're basically just getting echo to run as root, rather than getting root permissions on the file...

    Use: sudo sh -c "<your command here>"

    This will put the file redirection in scope for sudo.
  4. thread starter macrumors newbie

    Jul 27, 2012
    sudo thing worked...but cannot get the preferences to change in display preferences...any ideas
  5. macrumors 68040

    Feb 2, 2008
    Plist files are XML files not plain text files, as was mentioned you need to use plist editor or possibly use defaults, you can also edit the file manually in a text editor if you are familiar with XML.
  6. macrumors 6502

    Jan 27, 2009
    Montreal, Qc
    Not going to work.

    Even if you get the option to appear, when you "enable" it, it won't do a thing. Your Mac lacks the hardware to use it.

    If it was a software solution, it could work, but slowly.

    But in this case, Apple use one of intel's technology integrated only in their latest CPU.

    Do some research on "Intel QuickSync", you'll see.
  7. thread starter macrumors newbie

    Jul 27, 2012
    Thanks for the help everyone...still tryin cause i believe that we come with a work around like we did for airdrop in os x 10.7 Lion. Ill let you guys know.
  8. macrumors 6502a

    Jul 25, 2001
    This is the wrong syntax. I believe you're looking for something lie this.

    defaults write BrowseAllInterfaces 1

    However this assumes AppleMirrioring is the name of the .plist file AND that simply 'enabling' a feature magically makes it work. Unfortunately it usually doesn't work that way.

    For example:

    defaults write ivybridge 1

    doesn't give your machine an ivybridge CPU when you only really have a C2D.

Share This Page