Ical For Objectdock!

Here's the instructions to get the Ical made for y's dock working on objectdock.

1. Download ICal for Y's dock

2. Extract the rar file into your objectdock folder e.g. Objectdock\iCal\ (all the files in here)

3. Open up notepad. Copy and paste the code below into a new text document. Save the document into your objectdock\ical\ folder as "ical.bat"

4. Drag ical.bat into your dock. Change the program image to ical.png or the icon that is name "ical".

And you are done!

To update the date every day, you can either click on the ical icon, or have windows run ical.bat every day at 12:00 am through the Schedule Tasks feature.

You can also replace your shortcut to ObjectDock in the startup folder with a shortcut to ical.bat

Thanks to amanothi for his Ical for y's dock, and theunknown for his updated batch script.

@echo off

if [%min%]==[1] goto 2
set min=1
start /min ical.bat
goto end

:2
set min=
cls

taskkill /F /IM objectdock.exe
attrib -r -a -s -h %temp%\date.txt
del %temp%\date.txt
attrib -r -a -s -h ical.png
del ical.png
set png=

echo.|date|find "current">%temp%\date.txt
FOR /F "tokens=6 " %%i in (%temp%\date.txt) do @echo %%i>%temp%\date.txt
FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j
copy images\%png%.png ical.png
start ..\objectdock.exe

del %temp%\date.txt

:end
exit

#18139

I have made everything as described abowe, and when I ran the .bat file and od returned, the icon and the whole ical app

was gone from the dock.

Heeeelllllppppp!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

#18163

try this app : Process

syntax will be: process -k objectdock.exe

edit the line : taskkill /F /IM objectdock.exe

place process.exe in your windows\system32\ folder

i have same problem with taskkill.. has something to do with some disbaled services i think

#18166

IMPORTANT!

The script works only with american date form!!!!!!!!!!!!!

dd/mm/yyyy.

all other date form are bad u have to switch.

#18169

I know what happened. Objectdock doesn't save your shortcuts until you either go into the controll panel, or close the dock from within objectdock itself. Like if objectdock crashes, any icons you added from the time you started objectdock, till the time it crashed are gone.

To fix the problem, add the ical icon, close objectdock and then re-open objectdock. Or add the icon, SAVE, then run the ical app.

#18170

I did as instructed, asapin, but I get this error:

"Cannot find the the file'...\objectdock.exe' (or one of its components). Make sure the path and filename are correct and that all required libraries are available".

Any ideas?

#18181

ical.bat and the whole ical thing need in following folder structure:

objectdock with .exe\ical .exe and .bat\images from ical

#18182

HaraKiri-

Tried that, still coming up with same error message.

#18184

You do have a file named objectdock.exe right?

The folders should be like this:

..\program files\objectdock\objectdock.exe <-- the program is not finding this file for some reason

..\program files\objectdock\ical\ical.bat

Ical.bat, just looks up one directory and runs objectdock.exe that it should find there. What i'm thinking is for some reason you executeable is named differently, ical.bat is not in a folder directly underneath the objectdock folder, or You cave computer gnomes.

What OS are you running?

#18212

Tinker... what you have to do is to make a shortcut of the ical.bat file in the same folder... and the shortcut is what you are gonna place at the dock... this must solve your problem i hope.....

#18241

i cant be completely sure, as i cant physically see the problem 1st hand. but as i've just posted over at AquaXP, you need DOS Command Extensions turned on for this script to work. Now XP comes with them enabled, but if for some odd reason you've disabled them edit your registry to give

HKCU\Software\Microsoft\Command Processor\EnableExtensions

a value of 1, or type CMD /e:on in your command line.

the only other thing i can think of is the 8.3 character rule, assuming your exe file is objectdock.exe, change line 23 to read

cd ..

start object~1.exe

but if this is the case i would be extremely surprised

hopefully either of these fix the problem

NOTE: If anyone wishes me to make a script for another time format, please tell me where you need it for and the exact time format u use and ill make u a custom script.

#18251

tinker gallot, if this it the message your getting

"Cannot find the the file'...\objectdock.exe' (or one of its components). Make sure the path and filename are correct and that all required libraries are available".

you need to take a full stop from the start line, u only use 2 instead of the 3 displayed above.

#18253

Thanks for the input guys. Unfortunately, nothing seems to be working, so I guess it must be those computer gremlins at work...

Oh well, never mind, I'm getting my G4 PowerMac next week so I'll be able to play with the real thing then :)

#18369

Just add water... :blink:

#18374

alright, mine doesn't work either :(

when i run the batch file, everything seems copacetic, but then when OD reloads, the iCal shortcut has no icon. it seems that the batch is deleting the current iCal.png fine, but then not copying the new one correctly.

i'm on WinXP Pro, using the batch file posted with the taskkill line edited for process -k.

any help?

#18491

Did you try using the batch file without the process -k modification?

Also, does it copy the corect date png replacing ical.png?

I'm not sure how the process -k thing works, but I'm thinking if the ical.png file is correct, then the next instance of objectdock is being started before the correct file is copied.

#18494

nope, it's not copying the right png. that's probably the problem. i have no idea why, either. oh, and it didn't work with the taskkill line instead of process -k. i'll poke around a bit, and see what i can figure out. but please, help. i'd love to use iCal.

-Felix

#18601

Sorry for crossposting ... see also my posting at y'z dock ...

The batch file works if you have a date stamp like : 03/26/2003.

For those who have the date format like eg:  26-03-2003  ...  Perhaps this little update might work ...  Just tweaked it a bit to get the batch file working.

FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j

change this into:

FOR /F "tokens=1,2,3* delims=-" %%i in (%temp%\date.txt) do set png=%%j_%%i

#18604

Okay, after a long time of fiddlefarting around with it, I was about to give up. I tried everything, copied code, made changes, rewrote lines and more. But I finally got it figured out. For some reason it doesn't like to be in the Program Files folder because the name has a space and it will not accept that. So I moved the whole ObjectDock folder straight to my C drive. I then edited the temp.dat file in the iCal folder and took out the references to the 'Program Files' folder. I then started ObjectDock (from that location) and guess what, I worked. I now am enjoying iCal on my ObjectDock.

So, can someone now make this thing work with Samurize :D

Jolhof

#18618

gah. it still doesn't work for me. although, i've noticed if i use the iCal.exe file, it *will* copy the correct file. now, i just need to get OD to wait until that file is copied to start up, and also find a way to turn of the splash.

it'll do for a temporary solution, at least.

-Felix

(hey, maybe since i'm taking AP C++ i could write a little program to do this.... humm...)

#18650

The way I got iCal to work for me was, I copied the files to an iCal folder in Objectdock folder. Then you can drag an exe to Objectdock to create an icon. This can be any program. If you have a calendar program or perhaps your desktop program for a handheld device. Next, and this is important, set the icon for the exe to ical.png in the ical folder.

The next step is to create a shortcut to ical.bat in your startup folder and remove Objectdock shortcut if your using one, because ical.bat will run objectdock for you. When objectdock starts up you should see the correct date. Then you can just click on the ical icon in objectdock to run your calendar program, dayplanner or whatever.

If you leave your computer running 24 hrs, I guess you will have to shut down objectdock and run ical.bat once each day to get the correct date.

This works for me, and I hope it helps.

#18662

i've been trying to learn Batch file syntax et al for a while today, and i mostly understand it. the main line i don't get is the FOR /F "tokens=6 " %%i .... etc. if someone could explain that, that'd help i spose.

i'm still hoping someone else will fix it...

(my problem is that it doesn't copy the new PNG... i have a feeling it has to do with the date parsing business.)

anyway, any help would be greatly appreciated.

-Felix

#18670

all those having trouble, what date format are you using?

this script its written for mm/dd/yyyy. if you use something else, thats your problem.

however, it seem's all those having problems have also needed to use the process -k suppliment, so this tells me its something to do with how your machine is configured.

I wrote this script, and it works for me and a fair number of others, so unfortunately i have nothing to trouble shoot. but i'll keep lookin. and hopefully either i or someone else can resolve this ASAP.

#18685

:huh: For all who seems to have problems with the app-date ... this would be a bit helpfull :huh:

IMPORTANT!

The script works only with american date form!!!!!!!!!!!!!

dd/mm/yyyy.

all other date form are bad u have to switch.

-maximus-gratus

(my problem is that it doesn't copy the new PNG... i have a feeling it has to do with the date parsing business.)

anyway, any help would be greatly appreciated.

-Felix

all those having trouble, what date format are you using?

this script its written for mm/dd/yyyy. if you use something else, thats your problem.

- theunknown

For those who have the date format like eg: 28-03-2003 AND NOT LIKE 03/28/2003 ... You can do 2 things:

1) Adjust the date format : WHERE ?!

-> Controll panel

-> Regional and language option settings -> Windows XP : Press on CUSTOMIZE

-> Tab [date]

-> Change date formate to : mm/dd/yyyy -> OK / Apply

ORRRR :

2) Understand and Adjust the batch file ... See below::

change this line:

FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j

into this line:

FOR /F "tokens=1,2,3* delims=-" %%i in (%temp%\date.txt) do set png=%%j_%%i

explination : Perhaps you have noticed allready ... the delims is the seperator of the date. in english it was like 03/28/2003 ... as: mm/dd/yyyy. The delims=/ ... in other languages it might be dd-mm-yyyy or whatever you have: The delims=-

%%i is the first token , %%j is the second token

(after the first delimeter which can be / or - ) .

The third token doesnt matter since this is year.

So in case the / :

%%i = months ... %%j = days.

in case the - :

%%i = days ... %%j = months. That's why i swapped %%i_%%j to %%j_%%i.

The format of your png's is : months_days ... So check your date format ... and make sure this is set correctly ... if the first token of your date stamp is months and the second days ... it is %%i_%%j. If the first token of your date stamp is days and the second months ... Then it is %%j_%%i.

Note: It could also be possible you have dd/mm/yyyy -> so the delim = / and the format is : %%j_%%i

WHAT MORE COULD BE WRONG ? - IF THIS STILL DOESNT WORK

2.1) Make sure the directory names doesnt have a space in the path

... This simply can go wrong with DOS ...

Problems occur when the path is like : C:\program files\ .... etc.

All my problems were resolved when i moved the dock to folder

C:\dock\ -> in here is the program yzdock.exe

C:\dock\icons\ical\ -> in here is icall.exe

etc.

2.2) I have removed all %temp% to avoid a same 'space' problem.

why store it to C:\Documents and Settings\\Local Settings\Temp\date.txt ?! ...

when 'date.txt' is stored to c:\dock\icons\ical\date.txt ... That is fine with me.

And second of all ... i can verify how my date - format is stored.

Simply replace all %temp%/date.txt into date.txt

If you run the batch file now ... the date.txt will be created into c:\dock\icons\ical\date.txt instead of your computers default temp-directory ... open date.txt with notepad and it will show you the date. If you see like 03/28/2003 ... it had to do just with the spaces in the directory .... if it is stored like 28-03-2003 you have to edit it like explained above or change the dateformat ... The choice is yours.

Good luck now ... i hope this will explain alot. ;);):lol:

#18725

I've had iCal for a week and it still doesn't work for me. I have now tried something else and I will see if it works by tomorrow. I appreciate that you have posted and tried to help people with this.

Thanks. :rolleyes::rolleyes::rolleyes:

#18738