|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Path
Hey everyone,
I am a little confused about how to create a path. Can someone just lay down the basic structure? |
#2
|
||||
|
||||
I'm not quite sure what you're asking. Are you talking about file paths, as in creating an instance of java.io.File? Just invoke the constructor as shown on p. 151 of the Studio manual, i.e. new_java_io_File(args).
Or are you saying you want to actually create directories on disk? There are methods in java.io.File for that; see the Java API docs. Or are you talking about something else entirely?
__________________
-- Greg |
#3
|
|||
|
|||
Thanks for the quick response.
Must have somehow missed it in the studio guide. Got it now! |
#4
|
|||
|
|||
Hmmmm, actually it appears I may have spoken too early.
One more question, if I wanted to create a path to say, music, would I have to do something like: Music = new_java_io_File(C:\\.... all the way to music folder) ... commands to import albums, etc... Would this allow me to import the albums with the correct commands, or am I creating a path incorrectly? Also, I am a little confused about how to use the GetAlbums() command? Is there a place that can show me how these commands are actually used? Not the API command site, thats where I am now, but something like the studio tutorial that actually shows the commands in action. Last edited by sam.griffin.bht; 06-23-2009 at 06:35 AM. |
#5
|
||||
|
||||
Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#6
|
|||
|
|||
I think I must be calling the path incorrectly because when I try to identify it with IsFilePath it keeps returning false.
I want to create a path to C:\Program Files (x86)\SageTV\SageTV\STVs\SageTV3\Music and when I do: File = new_java_io_File(C:\\Program Files (x86)\\SageTV\\SageTV\\STVs\\SageTV3\\Music) Nothing happens, nothing is created. I began trying: File = GetFileForSegment(...), but I'm not sure what should go in the parameters for getting to my music file. |
#7
|
|||
|
|||
Quote:
If you call the above you will limit yourself to people using the default install path which allot of people don't So you should just be able to say \\STVs\\Music |
#8
|
|||
|
|||
can I still call that with new_java_io_File(\\STVs\\Music\\) or am I suppose to use a different call with it in order to be in that path?
|
#9
|
||||
|
||||
First of all, you need to put quotes around any string-valued function arguments.
Code:
new_java_io_File("\\STVs\\Music\\") I'm getting the impression that you have little or no programming experience prior to SageTV Studio. If that's the case, I strongly suggest you find a general "introduction to programming" tutorial to bone up on the basic concepts (such as strings, functions, expressions, variables, etc). With that background, you'll be able to ask better questions, and we'll be able to give better answers.
__________________
-- Greg |
#10
|
|||
|
|||
Thanks for your help, I've been meaning to get some good tutorials. All I've really been coding in is c for class, which is nothing like this. If you have any good suggestions for a good book, I'm all ears.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UNC path help | APillowOfClouds | SageTV Software | 12 | 02-24-2009 01:25 AM |
Which Upgrade Path? | jptaz | Hardware Support | 18 | 08-27-2008 05:46 AM |
what is the path? | rnewman | SageTV Software | 5 | 06-19-2007 05:02 PM |
UNC Path issue | Wrx4me | SageTV Software | 5 | 11-28-2005 05:44 PM |