HomeContact

frots (Folder Refresh Ots)

This is a version of the ofr script, renamed to frots, cuz it’s funnier. This was tested on 1.85.01 of OtsAV Radio, but should work on any version of OtsAV to date. It’s nothing fancy :) .

Here’s a compiled version:

frots executable

Call like this:

c:\frots.exe c:\OtsFiles\fullpathtofolder
or
c:\frots.exe c:\OtsFiles\fullpathtofolder “Browse for Folder”

More detail info can be found at the original posting for the earlier version of the script. http://www.otsusers.com/wordpress/?p=2

Here’s the source:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Lane
; FRots - Folder Refresh for OtsDJ version 1.85.x v0.3.0
; v0.3.0 rewritten by Lane Robinson for OtsDJ v1.85.x March, 2008
; v0.2.0 rewritten by Lane Robinson for OtsDJ v1.75.x April, 2007
; v0.1.0 Written by Lane Robinson, September 29, 2005
; v0.1.1 Revised by Lane Robinson, September 30, 2005
; Released into the public domain.
; Official home at http://www.otsusers.com/wordpress/?p=34
; Command line parameter required for folder path.
; Optional second command line parameter for the Browse for Folder window title

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

browsefolder = %2%
SetTitleMatchMode, 2 ; partial match mode, so we don’t have to type the entire window name
IfWinExist, OtsAV
{
if (%browsefolder% = “”)
{
browsefolder = Browse for
}
PostMessage, 0×111, 40031, 0, , ;Send Import/Refresh file message.
WinWait, Import/Refresh Album Files
WinActivate ;Activates “Import/Refresh Album Files” window
ControlClick, Import/Refresh Folder
WinWait, %browsefolder% ; wait for the browse window before we enter the path
SetCapsLockState, Off
Send %1%{enter}
WinWait, Import/Refresh Files Summary ; waiting on the ok dialog
Send {enter} ; that should be it folks
}

Comments Off

The Unofficial OtsAV Forum

Has been relocated to this website, just behind another curtain.

otsusers.com/forum

In time, Ots Corp. will take up the duties of manning an official support forum.  Until then, us regular old OtsAV users will do our best to help each other.

Comments Off

OtsAV replaces OtsDJ

The Ots folks have rebranded OtsDJ to OtsAV, which I suppose better reflects what it is. Head on over to http://otsav.com to download your copy. If you don’t already own an OtsDJ pro licence, you can get the free version to check out.

And on a hopefully unrelated note, the OtsDJ user support forum at http://otsdjsupport.com has vanished. I hope it wasn’t from some overloaded issue due to a bunch of new traffic about the new release. It seems this happened before with 1.75 :) . I bet there is a big red button Glen can press to make it all work again. Let’s hope!

**update - it seems otsdjsupport.com is deader than a doorknob. Jeff has got a new temporary forum up at http://otspeersupport.com.  Come on by, but know you have to re-register.  Everything has been lost from the old forum it seems.

Comments Off

A Friendly Reminder from your IT Department

from http://www.craigslist.org/about/best/bos/73716994.html

A Friendly Reminder from your IT Department
Date: 2005-05-16, 6:04PM EDT

I think it might be time for those of you who work in the corporate environment to get a bit of a refresher on your IT departments unspoken rules. It seems a few of you have forgotten what it’s all about. This should provide as a reminder as to the inner workings of the corporate IT world.

1. They are all my computers; I am only letting you borrow them. People constantly laugh at me when I say this, with no idea that I am absolutely serious. I have been given the responsibility of every computer in the office; they are all under my auspices, bar none. if I am gracious enough to give you access to one of my computers, then be nice to it. Talk to it kindly, call it a nice computer, and occasionally pat the monitor. Your computer – and your IT guy – will thank you for it. Also, this applies to printers, the network connection to the outside world, the videoconference system, and the phone system. Mine. All mine. Get it? Good.

2. If you are going to use my stuff, then use it properly. This means LEARN ABOUT FUCKING SPYWARE. If you absolutely HAVE to go to some site during work hours (and we’ll talk about this in a minute), then make sure, when the popups start showing up, you click the little black X in the upper right hand corner. Don’t click the big flashing “OK” in the middle. Don’t. Whatever it is you think you should do – if it’s not that little grey X in the uppermost right corner, don’t do it. Don’t. Just. Fucking. Don’t.

3. We know. Yeah, that’s right, we know. Every little site you’ve gone to. All the email that passes through your computers. All the instant message chats you have. We know. All of them. So the next time you decide you just HAVE to visit some idiotic website with a movie of two guys fucking a chicken, the next time you HAVE to spam emails to all your friends about the cute guy you hooked up with the other night and he gave you chlamydia, the next time you HAVE to talk to your ex-girlfriend about hooking up one more time behind your fiance’s back, think twice about who might be reading that shit, and if you’ve pissed your IT guys off. Because we know.

4. Do not take advantage of us, or our toys. It’s awful nice of us to provide you with a boatload of network storage space for your own private use. Oh, and incidentally, that network storage space at work? IT’S FOR WORK PURPOSES. That means take the seventeen gigabytes of mp3s from some shitty hip-hop artist that you got from some peer-to-peer and GET THEM OFF MY FUCKING NETWORK. I won’t ask nicely again. And listen to some real music – hip-hop sucks.

5. Learn to share. Look, I realize that the computer came with Windows XP. I don’t like it any more than you do. But really – that T1 we’ve got? It’s for everyone, so you can’t hog all our bandwidth by downloading the entire Fedora Core 3. Do it from home. If you want to bring it in to work and dual-boot your drive, I really don’t have a problem with it. But go back to kindergarden first and realize that hoarding is a bad thing, ok? Thanks.

6. The computer I let you use is for your use alone. This is somewhat malleable, where if someone at work needs your machine for a minute, you can let them use it. When your fourteen year old son comes to the office with you on Saturday and you let him use one of MY computers, then bitch to me about spyware, well, I’m just gonna tell you to lick the crack of my ass and spit in a cup. Sure, I’ll fix your machine, but after that you’re gonna have two icons on your desktop; “Go To Work” and “Go Home”, and “Go Home” won’t work until 5:30. Think I can’t do it? Try me.

7. Are you a Program Manager? Then keep your fucking hands off of my fucking computers. This is non-negotiable. You people could fuck up a free lunch. Get the fuck away from them or I will stab you in the neck with a pencil.

8. Are you in sales? Please see #7. You people are worse than Program Managers. Drink bleach.

9. Are you in Engineering? I realize that most of you have forgotten more about hardware than I will ever know. This doesn’t really give you the right to attempt to overclock the PC I’ve let you use to Ludicrious Speed. Please use discretion. Attempting to eke out a few hundred more hertz is fine; requisitioning a Freon Cooling Unit because 3.06G just isn’t fast enough is a little overkill. Trust me.

10. Oh, so you have a laptop of your own? Keep. It. Off. My. Network. If I catch an unknown machine anywhere on my net (please see #3), I will fuck that machine up so badly your high-school TI calculator will be a Beowulf Cluster compared to your new paperweight. Also, I don’t fix home computers. Tough shit. I hope you get herpes.

11. If you want something from your IT Department, email is your friend. This is a bit of a pet peeve of mine, but still – if you need something from me, email it to me. Don’t blindly call me, don’t magically materialize next to my desk and sit there while I’m working on something, waiting for me to pay attention to you – email it to me. I’m not doing shit for you until I have a paper trail originating from you about it. You can follow up with a phone call, that’s fine; you can come over and say, “I just shot you an email, can we discuss?” – that’s fine too. If you just come over and leer at me while I’m in the middle of something, I will ignore you, and mentally give you cancer with my mind.

12. Anti-virus software. Look, people, it’s there for a fucking reason. Don’t try to shut it off, please? Can we at least agree on that? We spent a lot of money on that software so that it would be up and running all the time, and it’s not really my fault if you have fifty applications open and “the anti-virus software is slowing my machine down!!” So I’ll make a deal with you; if you don’t shut my anti-virus software on my computers off, I won’t shove an abacus straight up your ass. Ok? Good.

Following these 12 simple steps will make for a far more pleasing work environment. I guarantee it.

Thanks for reading.

Comments Off

Folder Refresh for OtsDJ version 1.75.x

Minor changes in the program require changes to the folder refresh script.

This version might actually work with an older version of OtsDJ, I just haven’t tested it.

For now, here’s the code. I’ll dress this up later with proper instructions etc.

also note that on Apr 28, 07, at 6:22 pm CST, I fixed some missing linefeeds I just noticed. If you tried the script, might have gone bonk before the fix.

; FRO - Folder Refresh for OtsDJ version 1.75.x v0.1.1
; v0.2.0 rewritten by Lane Robinson for OtsDJ v1.75.x April, 2007
; v0.1.0 Written by Lane Robinson, September 29, 2005
; v0.1.1 Revised by Lane Robinson, September 30, 2005
; Released into the public domain.
; Official home at http://www.otsusers.com/wordpress/?p=34
; Command line parameter required for folder path.
; Optional second command line parameter for the Browse for Folder window title
browsefolder = %2%
SetTitleMatchMode, 2 ; partial match mode, so we don't have to type the entire window name
IfWinExist, OtsDJ -
{
if (%browsefolder% = "")
{
browsefolder = Browse for
}
PostMessage, 0x111, 40031, 0, , ;Send Import/Refresh file message.
WinWait, Import/Refresh Album Files
WinActivate ;Activates "Import/Refresh Album Files" window
ControlClick, Import/Refresh Folder
WinWait, %browsefolder% ; wait for the browse window before we enter the path
SetCapsLockState, Off
Send %1%{enter}
WinWait, Import/Refresh Files Summary ; waiting on the ok dialog
Send {enter} ; that should be it folks
}

Comments Off

OtsOps.exe & do32.exe - Two VERY usefull tools for the Ots community!

Released here in the public domain…Peace,

Ted

Some files may contain an .exe.

Urgency system

This is a note to myself. Anyone else reading this will probably not be interested.

Someone at the ots forum had a good idea I liked and expanded on a bit in my mind. I think I could build it into my browser based request system. Here’s the link. > http://otsdjsupport.com/showpost.php?p=67646&postcount=7

Thanks for Jeff at jumpinjeff.net for pointing out the old link no longer worked. all fixed now.

nowplaying-0.2 (for OtsDJ)

This is a script I wrote to display an image with the currently playing song in OtsDJ. It uses the RAC to access OtsDJ and ask it what’s playing. It caches the result for 10 seconds in case multiple viewers call it at the same time so we don’t hit OtsDJ’s RAC server more than once every 10 seconds. If OtsDJ isn’t running, it will display a message saying off the air.

This version uses a .png file for the background image. One is supplied, but you can also provide your own. If you want to change the dimensions and layout, look at the php code and figure out how it works. If you don’t want to take that on, then live with it as it is! :)

Example
Click on it to see the full size version, without a border etc.
now playing

Download
This is a gzipped tar. On linux, you would do a “tar -zxvf nowplaying.tar.gz”. Then check out the README file and take it from there. Download nowplaying.tar.gz

ofr.exe [OtsDJ Folder Refresh] v0.1.1

This version is for OtsDJ 1.15.x and perhaps a bit earlier. For OtsDJ 1.75.x, you want v0.2.x.

I’ve written a program to automatically refresh a folder in OtsDJ. One feature that OtsDJ lacks is a directive for refreshing the media library. Until that feature gets added, we have to do it manually, or write a script to do it for us. There is a free scripting program out there that seems to be powerful enough to do that job. Visit http://autohotkey.com if you want to get it for yourself. For those not thrilled about scripting something up themselves, I’ve released the scripot I’ve written as an .exe. Scroll down for the download link.

Intended application
I download a news bulletin in mp3 format every hour automatically. OtsDJ will recognize mp3’s, but only after it analyses the content through a refresh or easy scan. It creates an .omx file in the process which contains the extra info it needs. The problem is, if you update the mp3, OtsDJ will no longer recognize it. It will substitute in a placeholder tag in the playlist when you try and play it. We need to refresh that item before OtsDJ will recognize it again. This script refreshes everything within the folder specified.

Design guidelines for the script

  • To cause OtsDJ to refresh a specified folder.
  • To be executed via command line.
  • To receive the folder path in the command line to the script.

Execution
The script will receive the path from the command line, and will check to see if OtsDJ is running. If it isn’t, it does nothing. If it is, it will then execute File > Refresh Media …, choose the folder, and hit the enter key to ok the selection. It needs to hit an ok button again after the work is done to close a report window.

How to call it
You’ll call the script via command line. The intended purpose is to set it up in your task scheduler to call the script after your mp3’s have been downloaded. The format to call the script from command should be as follows:

c:\ofr.exe c:\OtsFiles\fullpathtofolder
or
c:\ofr.exe c:\OtsFiles\fullpathtofolder “Browse for Folder”

Do not put a trailing slash “\” at the end of the folder path.

The idea here is you create a folder just for items that are updated frequently, like an mp3 news bulletin you download from a service. You likely don’t want to scan your whole media library, unless you don’t mind waiting for all new music to scan in. But what do I know, maybe that’s precisely what you want to do with this script/program!

The second command line option is for the window title of the Browse for Folder dialog. If you OS isn’t set for English, you will need to put this optional parameter with the exact text in the title of that window. If you leave it off, it will default to the English text.

Future considerations
Version one works with folders. I may release a version for single items as well, or I may make the one script work for both. If I get more ambitious, I might make one that accepts multiple arguments.

Download
I am not responsible for any damage that you may incur on your computer as a result of executing this file. Do not download ofr.exe unless you are assuming all and any risk. Download here > ofr.exe.
Although this is an .exe, it doesn’t install anything in the registry or otherwise alter anything on your computer. All it does is remote control OtsDJ a bit. Be it this file or any other, you should always use your virus protection software to scan an .exe file before you execute it.

The Source Code
Because I am so nice, and this is really a learning project for many (including me), the source code is posted here. If you don’t trust downloading an .exe, then get the source, understand it, and run it yourself. You’ll need http://autohotkey.com if you want to run the source.

; OFR - OtsDJ Folder Refresh v0.1.1
; v0.1.0 Written by Lane Robinson, September 29, 2005
; v0.1.1 Revised by Lane Robinson, September 30, 2005
; Released into the public domain.
; Official home at http://www.otsusers.com/wordpress/?p=2
; Command line parameter required for folder path.
; Optional second command line parameter for the Browse for Folder window title
SetTitleMatchMode, 2 ; partial match mode, so we don't have to type the entire window name
IfWinExist, OtsDJ -
{
if ( 2 = "" )
2 = Browse for Folder
PostMessage, 0x111, 40031, 0, , ;Send Import/Refresh file message.
WinWait, Import/Refresh Album Files
WinActivate ;Activates "Import/Refresh Album Files" window
Send {TAB 2}{enter}
WinWait, %2% ; wait for the browse window before we enter the path
SetCapsLockState, Off
Send %1%{enter}
WinWait, Import/Refresh Files Summary ; waiting on the ok dialog
Send {enter} ; that should be it folks
}

History
The history is a short one so far.
Version 0.1.1 - added an optional command line parameter for the window title of the Browse for Folder dialog. This is to accommodate OS’s in languages other than English.
Version 0.1.0 - Just out of the gate.

Welcome

Why is this here?

Well, mostly because I like OtsDJ, and the other products of a wee company called Ots Corp. from the land downunder. I like to talk about them. Other people do too! So I thought I’d give them the chance.

Most anybody can comment on a post. Just be sure to fill in your name and email. If you got something you want to say on your own topic, well, just register with the site, and you’ll get to do that.

Are there rules here? Well, no formal ones yet. But don’t be a dung hole. I don’t need to explain what that means. You can be critical, even complain, as long as it’s done respectfully. I’m against censorship, so as long as it’s not libelous, or promotes something illegal, I’m not too concerned on what is expressed here.

What is the purpose of this place? I don’t really know that yet. Let’s find out together. Perhaps it’s more about what you want than what I want.

Why did you make this place? Well, my other favourite Ots related hang out vanished for a while a couple of times this past year. I registered a domain name as a knee jerk reaction, in case a new place was need to be created in a hurry. Things are now working perfectly fine over at otsdjsupport.com right now, so there’s no need for this place to do the same job. I thought I’d put this domain to work and have it do something though. No point in it’s collecting moth balls unless it’s the collective will of All That Is.

Who invented liquid soap? And why? No freaking idea. But when it first came out, I noticed a strong resemblance to regular old shampoo. I think we’ve been tricked!