mckayj
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
07:33 AM
Simple BrightScript Editor and Compiling question
Hello there,
I am extremely new to brightscript development, and at the moment would just like to modify some of the Roku example programs with my own video links, and then re-compile to upload to my private roku channel.
1. I can't seem to figure out how to open the brightscript editor. I am on Mac OSX, but also have win 7. What is the easiest way to edit the sample .brs files?
2. Once I edit these files, how do I recompile them into the .zip which can be imported into my private channel.
Thanks so much for any help you can provide.
jay
I am extremely new to brightscript development, and at the moment would just like to modify some of the Roku example programs with my own video links, and then re-compile to upload to my private roku channel.
1. I can't seem to figure out how to open the brightscript editor. I am on Mac OSX, but also have win 7. What is the easiest way to edit the sample .brs files?
2. Once I edit these files, how do I recompile them into the .zip which can be imported into my private channel.
Thanks so much for any help you can provide.
jay
6 REPLIES 6


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
07:52 AM
Re: Simple BrightScript Editor and Compiling question
"mckayj" wrote:
1. I can't seem to figure out how to open the brightscript editor. I am on Mac OSX, but also have win 7. What is the easiest way to edit the sample .brs files?
Any text editor will work. On OS X, I use TextWrangler from http://barebones.com/
"mckayj" wrote:
2. Once I edit these files, how do I recompile them into the .zip which can be imported into my private channel.
BrightScript is an interpreted language. There is no compiling. You can use any zip utility to package your channel. Take a look at Section 7 of the Developer Guide and the Channel Packaging and Publishing document in the SDK. There are also sample makefiles in the SDK that are helpful.
mckayj
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
08:39 AM
Re: Simple BrightScript Editor and Compiling question
Thanks for the help. Textwrangler worked great.
However when I use OSX to compress the "simple video player" folder after I make the changes, and upload it using the development application installer, it says uploaded successfully, but does not show up on my channel list. When I upload the already compiled zip files that came in the SDK, they open fine. Any idea what may be causing this?
Thanks so much
Jay
However when I use OSX to compress the "simple video player" folder after I make the changes, and upload it using the development application installer, it says uploaded successfully, but does not show up on my channel list. When I upload the already compiled zip files that came in the SDK, they open fine. Any idea what may be causing this?
Thanks so much
Jay
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
08:49 AM
Re: Simple BrightScript Editor and Compiling question
If there's a syntax error in your code, the channel will not show up. Telnet to port 8085 and you should see the error.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
mckayj
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
09:05 AM
Re: Simple BrightScript Editor and Compiling question
Thanks JT
Here is the error I received, but there is a /source folder in the zip.
An error occurred while attempting to compile the application:
------->Script directory "/source" does not exist in zip archive.
=================================================================
An error occurred while attempting to compile the application:
------->Script directory "/source" does not exist in zip archive.
------ Running ------
unexpected error getting five_photos.
------ Running ------
showSpringboardScreen
Button pressed: 2 0
Here is the error I received, but there is a /source folder in the zip.
An error occurred while attempting to compile the application:
------->Script directory "/source" does not exist in zip archive.
=================================================================
An error occurred while attempting to compile the application:
------->Script directory "/source" does not exist in zip archive.
------ Running ------
unexpected error getting five_photos.
------ Running ------
showSpringboardScreen
Button pressed: 2 0


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
09:08 AM
Re: Simple BrightScript Editor and Compiling question
Be sure you are zipping up the contents of the folder and not the folder itself. Your package structure should be myChannel.zip/source/, not myChannel.zip/myChannel/source/
mckayj
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2010
09:49 AM
Re: Simple BrightScript Editor and Compiling question
That was it, Thanks so much!
Jay
Jay