Applications Menu Appliance
June 01, 2007
This appliance is Copyright © 2007 AK2007 of awkwardTV. All Rights Reserved.
This appliance will enable you to execute any application that that can run on an Intel based Mac. Please note that AppleTV has a stripped down version of OSX and may not be able to run all applications. The Plugin reads the list of the applications and their options from a configuration file and presents them to the users as menu options. The latest version of the plugin automatically detects if you a running VLC and provides the ability to control VLC using the remote.
These values can be specified in the configuration file to activate additional functionality
- fireandforget - Run applications in background
- killfinder - Stop ATV UI before launching the child application
- remotehelper - Press and Hold to exit the launched application and VLC controls
- [-browseforfile-] - use this in the args parameter to browser for a file on ATV
- Now files name in app names are now supported, however spaces are not supported for files and paths in the arguments list
These settings have been used successfully with VLC. remotewatcher feature must be used for VLC entries to have full mouse control.
<dict> <key>args</key> <string>-f --video-on-top [-browseforfile-]</string> <key>fireandforget</key> <false/> <key>killfinder</key> <true/> <key>menu</key> <string>VLC</string> <key>path</key> <string>/Applications/VLC.app/Contents/MacOS/VLC</string> <key>remotewatcher</key> <true/> <key>browsepath</key> <string>~/</string> </dict>
The following VLC functions are supported by the remote
- 1. Play
- 2. Pause
- 3. Vol Up
- 4. Vol Dn
- 5. Next item on play list hold right button
- 6. Previous item on play list
- 7. Close VLC and quit - press and hode menu button
1. Sometimes the AppleTV UI refuses to give up the screen and the launched app runs behind the ATV UI and is not visible. Usually this happens after rebooting AppleTV and occasionally after the screen saver has kicked in. One workaround is to close the Apple TV UI, this will automatically restart so don't worry. Doing this 2-3 times after the reboot usually makes things behave.
2. Spaces in file names or pathes passed in the args list are not allowed, this also hold true for files browed using the -browseforfile-] parameter.
3. If you use the killfinder option depending on how your hack has been done Watchdog may kick in and start rebooting your machine. The plugin will try to stop the Watchdoeg but its has only been tested on a couple of machines. I normally have Watchdog disabled on my machine, and have a very stable environment. I have used the -Method Two: Manually Disable Ripstop and Watchdog- method from the Watchdog page.
This plugin was developed by AK2007 of AwkwardTV.
Images were created by BigBaconAndEggs of AwkwardTV. Many thanks to Alan Quatermain of AwkwardTV for the wonderful tutorials and a robust debugging environment, and |bile| of AwkwardTV for their assistance in solving several techincal issues. Special thanks to Eric III of Awkward TV and Erica Sadun for the sample code.
Version 1.0 (29th May 2007):
- Initial version that suspended BackRow and launched an application.
Version 1.1 (not released publicly):
- Added support to kill the Finder.app and run apps
- Added support to close applications that do not support the remote control
- Changed the format of the configuration file
- Added menus to close Finder and reboot AppleTV
- Added support for launching background applications
- Added support for passing arguments
Version 1.1.2 (1 June 2007):
- Allow Filname substitions in the arguments list allow users to browse for target files
- Support for VLC using the Apple Remote
Version 1.1.3 (1 June 2007):
- Added FRAppliancePreferedOrderValue for the plugin
- Allow adding and removing items from the AppleTV UI
- Allow changing options from AppleTV UI
File Location and Name \Users\frontrow\Applist.txt The configuration file contains the list of applications one per line. The format is Menu Label,path/to/your/app
Please Note : You have to find the actual executable usually located in Contents\MacOS directory.
File Name and Location: /Users/frontrow/Documents/Applist.plist
Sample Configuration File:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Applications</key> <dict> <key>0</key> <dict> <key>args</key> <string></string> <key>remotewatcher</key> <false/> <key>fireandforget</key> <false/> <key>menu</key> <string>AppleRemote</string> <key>killfinder</key> <true/> <key>path</key> <string>/Users/frontrow/Applications/AppleRemote.app/Contents/MacOS/AppleRemote</string> </dict> <key>1</key> <dict> <key>args</key> <string>-f --video-on-top /Users/frontrow/aaj2.asx</string> <key>remotewatcher</key> <true/> <key>fireandforget</key> <false/> <key>menu</key> <string>VLCTest</string> <key>killfinder</key> <true/> <key>path</key> <string>/Applications/VLC.app/Contents/MacOS/VLC</string> </dict> </dict> </dict> </plist>
Each application should have a unique keys the keys should be sequential with no gaps and start at 0 followed by the entries for that application.
Label for the Menu on the screen This is a string type value and should not be blank
The path key should contain the fully qualified path the actual executable being launched. Please not that mac apps have a .app exetension this is actually the name of a folder and you must put the actual file name which is usually in xxx.app/Contents/MacOS director. This is a string value and must not be blank.
Arguments to the launched appliction are passed in the args key. This is string type value and can be blank. you can also use [-browseforfile-] in the argument list as a placeholder for a file. If this value [-browseforfile-] is present in the argument list, the plugin will allow you to browse for a file
<key>args</key> <string-f /Users/frontrow/></string>
The killfinder option is used to kill the AppleTV Finder application, this mode is useful for applications that seem to consistenly launch behind the BackRow screen, or have problems with screensavers. One possible side-effect of using this mode can be that the Watchdog process can kick in and reboot ATV. Altough we send a stop message to ripstop. So if you see this behaviour, you can either stop watchdog or not use this mode The possible values for this key are </true> and </false>
The remotewatcher option actives a helper application which listens to the remote control and is used to exit applications which do not support the remote. To exit an application press and hold the remote key. The possible values for this key are </true> and </false>
The fireandforget mode is used to lauch background processes, this is meant to be used for non-gui processes. The screen is not yielded to the background process in this mode. If this mode is used killfinder and remote watcher options are ignored. The possible values for this key are </true> and </false>
The browsepath mode is used in conjunction with file subsitition feature. If this value is present it will be used as the starting point for browing for files This is a string value and should point to a valid path in the system
<key> browsepath </key> <string>/Users/frontrow/Movies</string>
Copyright © 2007 AK2007 of awkwardTV. All Rights Reserved.
Icons by BigBaconAndEggs of AwkwardTV.
AppleTV is a registered trademark of Apple, Inc. AppleTV and BackRow are Copyright © 2006-2007 Apple, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, publish, and/or distribute copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The author is in no way affiliated with Apple, Inc.