Ical In Moby Dock...

I edited the below .bat file and got iCal to work with DX. Here's the new iCal.bat contents.

@echo off

taskkill /F /IM Mobydock.exe

attrib -r -a -s -h %temp%\date.txt

del %temp%\date.txt

attrib -r -a -s -h ..\ical.png

del ..\Icons\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 icons\%png%.png ..\Icons\ical.png

cd ..\..\

start Mobydock.exe

exit

Now just follow the instructions from JONEz below and voila!

-----------------Old Message--------------------

JONEz and others,

Can you give me a good explanation of how to implement iCal with a changing date icon in Moby Dock? I know that the other two docks can do it, but I'm not keen enough to do it my self yet for Moby Dock.

Thanks for the help.

Kevin

#21321

Sure thang,

Put the iCal folder that's normally inside the icons folder for Yz inside your MobyDock 0.67\dockconfig folder. It doesn't matter if any folders prior have spaces or what their named. So it should look like C:\somefolder\MobyDock 0.67\dockconfig\iCal,

Create a new batch file named iCal.bat inside the iCal folder, and put this in it:

@echo off

taskkill /F /IM mobydock.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

cd ..\..\

start mobydock.exe

exit

Now, close your dock and run the batch file (double click). It won't show up in the dock yet (but the dock will open), but now we have the correct icon sitting in the dockconfig folder. Drag your new iCal.bat to the dock, and select the ical.png that is now in the dockconfig folder.

Use the new batch file in your startup items to update your icon when you boot (also you can right click -> properties, then select start minimized so you don't get a DOS window every time), and you can also add a scheduled task to run the .bat file every night at 12:00AM to update it as well.

Hope this helps!

#21353

Any way to get it to work w/ MobyDock DX?

#21570

Yeap do the exact same thing but in your new DX folder. The only other thing I did was capitalize the M in Mobydock.exe in the batch file but you probably don't even have to do that.

#21972

Thanks that works great! I'm using it to link to my calendar program and have the icon in MD update everyday.

The .bat file in the start-up folder seems to run fine, but when I try to run the .bat file from the Scheduled Tasks it does not restart MD. Any suggestions?

#22189

Try changing the m in mobydock.exe (both places in the batch file) with a capital M (hence Mobydock.exe).

Make sure your scheduled task is set to run your iCal.bat, and not the .exe that came with it or any others. If it works as a startup item then your task can't be setup properly.

#22210

To the top with you! (Y)

#28845

I follow the instructions. run the batch file, the dock appears, drag the bat to the dock but the correct ical png doesn´t appear on the dockconfig folder. What am I doing wrong ?

Help please.

#29586

You need to select the icon yourself by right clicking and going to item properties. Select "Set Image" and choose the new iCal icon that is now in with the rest of your icons. Everytime the .bat file is executed it will change the icon in your config folder to reflect todays date. What works best for me is putting the .bat file in my start up folder instead of MobyDock.

#29738

I mean that no ical icon appears in the dockconfig foder so i cannot select any

#29739

Make sure the iCal folder is in your dockconfig folder...

Try copying one of the ical images from the images folder in iCal to your dockconfig folder (COPY IT DON'T MOVE IT) then see if it will update that.

#30549

if I copy one of the pngs from the iCal/images folder to the dockconfig folder and rename it as iCal.png and then I run the bat, the png is killed but no new one is added. ???

#30584

To the top again...

(Y)

#70260