Hi Everyone, i've been following this group for while now dabbling
here and there, but i'm no programmer so i've had very little success,
a few days back i came on for a look round and noticed the whilst
browsing the source code it contained a basic menu browser and movie
launcher for vlc this is basically want i want to make but for "simple
comic" but i'm having difficulty following the instructions as i've
said, i'm no programmer
I think this is where im going wrong in Plugin101 it says...
4. Edit the setup.py file. You'll want to change the NSPrincipleClass,
CFBundleExecutable, and CFBundleName..
5. Rename FrontPython.py to match what you named the
CFBundleExecutable (followed by the .py)..
from distutils.core import setup
import py2app
plist = dict(NSPrincipalClass='Comics',
CFBundleDevelopmentRegion='English',
CFBundleExecutable='Comics',
CFBundleName='Comics',
CFBundleIdentifier="com.apple.frontrow.appliance.FrontPython",
CFBundleInfoDictionaryVersion='6.0',
CFBundlePackageType='BNDL',
CFBundleSignature='????',
CFBundleVersion='1.0',
FRApplianceIconHorizontalOffset=0.046899999999999997,
FRApplianceIconKerningFactor=0.10000000000000001,
FRApplianceIconReflectionOffset=-0.125,
FRAppliancePreferedOrderValue=-1,
FRRemoteAppliance=True )
setup(
plugin=['Comics.py'],
data_files=['English.lproj', 'PyFR', 'Comics.py'],
options=dict(py2app=dict(extension='.frappliance', plist=plist))
)
so i guess i replace 5 things with the word comics?? as above
and then in frontpython.py
#
# main.py
# Comics
#
# Created by garion on 12/15/07.
# Copyright __MyCompanyName__ 2007. All rights reserved.
#
#import modules required by application
import PyFR.Appliance
import PyFR.WaitController
import PyFR.Debugging
import PyFR.OptionDialog
import PyFR.FileBrowser
import PyFR.AppLauncherController
class MyFileBrowser(PyFR.FileBrowser.FileBrowserController):
def init(self):
PyFR.FileBrowser.FileBrowserController.initWithDirectory_
( self, "/Users/James/Comics" )
return self
def fileSelected_(self, selectedFile):
self.stack().pushController_(
PyFR.AppLauncherController.AppLauncherController.alloc
().initWithApp_file_( 'Launching Comic',
'/Applications/simple
comic.app',
selectedFile ) )
class RUIPythonAppliance( PyFR.Appliance.Appliance ):
def getController(self):
return MyFileBrowser.alloc().init()
so i've changed frontpython on line 3 to comics
changed line 20: /Users/James/Comics
line 26:
( 'Launching Comic',
'/Applications/simple
comic.app',
selectedFile ) )
any help on any this would be appreciated, (even if its just telling
me to give up and leave lol) i dont imagine this is that hard to do,
but then what would i know,
thanks in advance
James