Author |
Message |
Registered: May 27, 2009 | Posts: 50 |
| Posted: | | | | Ok, I was able to test the auto-parameter setting(s) and it worked great. I think I may just end up writing a "one script to rule them all" script (thinking of converting to PERL and calling the .pl from the bat script... I am just more confortable in PERL, I can do things easier, mainly due to greater familiarity w/ PERL over windows shell scripting ). So I guess I should retract my request Thanks |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Sparkss: Quote: Ok, I was able to test the auto-parameter setting(s) and it worked great. I think I may just end up writing a "one script to rule them all" script (thinking of converting to PERL and calling the .pl from the bat script... I am just more confortable in PERL, I can do things easier, mainly due to greater familiarity w/ PERL over windows shell scripting ). So I guess I should retract my request
Thanks I'm really glad that it is working out for you. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
|
Registered: May 27, 2009 | Posts: 50 |
| Posted: | | | | Yes it is. Many thnaks. I also made good (finally) on my previous promise |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Sparkss: Quote: Yes it is. Many thnaks. I also made good (finally) on my previous promise Well indeed you did, and handsomely I might add. Thanks. People don't realize how powerful a motivator that support is for an author, because nobody is gonna donate hard cash unless they see some real value in what you are doing. I don't expect to get rich. It does provide some cold beers and DVDs to keep the jiuces flowing. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
|
Registered: May 27, 2009 | Posts: 50 |
| Posted: | | | | When you consider that 2 of the 3 plugins that I use, and 1 of the 2 that I use on a regular basis right now, are yours, how could I not donate ? |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Version 2.11 Available
- Fixed a couple of critical bugs preventing operation on DVDP 3.6 / 3.7 - Added .Wsf as supported script type
Note: This version still does not yet support the new fields introduced in 3.6. I am not even sure that this plugin is used anymore, so I will refrain from spending any time on upgrades unless requested. But at least I wanted it to work correctly, within its limitations, just in case it can be of use in the future. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,917 |
| Posted: | | | | Just started working with this plugin and I believe it'll help me create files for each profile to use with Boxee. Ran into a snag though with version 2.11. A profile I was testing with ("3:10 to Yuma", 031398221890) contains double-quotes inside the overview and it breaks the batch file parameters. Quote: Infamous outlaw Ben Wade (Crowe) and his vicious gang of thieves and murderers have plagued the Southern Railroad. When Wade is captured, Civil War veteran Dan Evans (Bale) volunteers to deliver him alive to the "3:10 to Yuma," a train that will take the killer to trial. But with Wade's outfit on their trail – and dangers at every turn – the mission soon becomes a violent, impossible journey toward each man's destiny. Parses out to: %1="Infamous outlaw Ben Wade (Crowe) and his vicious gang of thieves and murderers have plagued the Southern Railroad. When Wade is captured, Civil War veteran Dan Evans (Bale) volunteers to deliver him alive to the "3:10 %2=to %3=Yuma, %4=" a train that will take the killer to trial. But with Wade's outfit on their trail – and dangers at every turn – the mission soon becomes a violent, impossible journey toward each man's destiny." |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,917 |
| Posted: | | | | I managed to code around the quote problem using VBScript. The plugin causes an error if there are no discs on the profile even though the option to export disc information wasn't checked. |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Dr. Killpatient: Quote: I managed to code around the quote problem using VBScript. The plugin causes an error if there are no discs on the profile even though the option to export disc information wasn't checked. Ok thanks for the scoop. This is a little used, albeit powerful plugin, so those bugs have not been reported before. I'm glad you were able to code around the problem in the meantime. I have forgotten whether or how well I support the newest fields, so if you hit any that aren't there, let me know and I will cobble them in. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,917 |
| Posted: | | | | No need for any fields to be added. My only wishlist would be to auto-detect the parm list in WSF files like you do for BAT files.
Something like parsing out the following: ' %0 = RunCode (1 = start, 0 = run, 2 = finish) ' %1 = Profile ID ' %2 = title ' %3 = Rating ' %4 = Overview ' %5 = Genres ' %6 = ProductionYear ' %7 = RunTime | | | Last edited: by Dr. Killpatient |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | OK!!! | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,917 |
| Posted: | | | | If you do add parsing to WSF files, here's the parmtest.wsf file I used to debug things.
<?xml version="1.0" ?> <package> <job id="DVDP"> <script language="VBScript"> <![CDATA[
' %0 = RunCode (1 = start, 0 = run, 2 = finish) ' %1 = Profile ID ' %2 = title ' %3 = Rating ' %4 = Overview ' %5 = Genres ' %6 = ProductionYear ' %7 = RunTime
DIM i DIM Out DIM Ok DIM ArgCnt
ArgCnt=wscript.arguments.count
IF ArgCnt = 0 THEN WScript.echo "There were no arguments passed." ELSE ArgCnt=ArgCnt - 1 FOR i=0 to ArgCnt Out=Out & "Argument " & i & ": [" & WSCript.Arguments.Item(i) & "]" & Chr(13) & Chr(10) NEXT WScript.echo Out END IF ]]> </script> </job> </package> | | | Last edited: by Dr. Killpatient |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Thanks! Once I understand it, I think I will include it in the package as a sample, with your permission. If you want to edit the post with an embedded credit, I will cut and paste the whole smash when I get close to release. Oh, do me a favor - if you could edit and insert your suggested parameter comments in the appropriate place. Saves me researching wsf syntax - I haven't used them much. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
|
Registered: May 19, 2007 | Reputation: | Posts: 5,917 |
| Posted: | | | | Bah, had a long reply typed in and it got lost when I posted!
Summarized verson: Updated last post to include param block. Feel free to use as you wish, credit not needed. Identical to batch format except zero based and uses an apostrophe instead of "REM". I plan on posting my Boxee script in the Home Theater forum after I get some sleep. Just picked up WSF VBScript a few days ago, seems easy enough though somewhat limited in power. |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | Quoting Dr. Killpatient: Quote: Bah, had a long reply typed in and it got lost when I posted!
Oh man I hate when that happens. Anyway, you gave me what I needed. Thanks and Happy New Year! | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,461 |
| Posted: | | | | DVD ProfileLoop V2.12 Available- Handles cases where Overview or other strings have embedded double quotes - Auto-recognition of parameter specs embedded as comments in .wsf files - Performance enhancement - Inclusion of ParmTest.wsf as a sample, thanks to Dr. Killpatient I hope this is what the Dr. ordered. This plugin is relatively small, so I should be able to respond fairly quickly on any additional bugs. Have fun! (If this works, it will probably screw up your emergency coding, so don't forget to adjust your posted Boxee script!) | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
|