iCal
yep it`s awesome ![]()
mmmmm......dates.
You know what was confusing though, it opens up a new dock when its run, and I was having Y'z dock start up and then id click the iCal icon, wrong thing to do. After 10 minutes of fun I had 10 docks open and i realized I have to stick iCal in my Startup folder instead. Which is actually better i guess, cause it automatically updates the date. Theres my story of entering the depths of programming hell. ![]()
PS. Sputnikk: Where can I get that wallpaper, ive seen people with it and its killer.
Have most people gotten the iCal PNG icon to change automatically from one day to the next?
I've installed it as per the instructions but the date icon does not update. Clicking manually on the icon launches the update program but after the Updating Splash Screen nothing happens.
My paths are correct too.
Hmmmm?
Got any comments?
Thanks
here's my batch substitute for iCal, it works on the same basis.
- but has no updating message
- seem's faster (to me atleast)
- and dosnt open another dock over your old one
credit goes to Aman (amanothi@hotmail.com) for a great idea,
and Pete Mrsich (Xicons.com) for the icons.
i just though someone may fine this handy.
to set it up, unzip the original archive as in Aman's readme file.
then create a batch file called ical.bat in the same directory as ical.exe
copy and past the following into the batch file and away you go.
this script will even put iCal in your yzdock with the right icons,
and lauch paths, aslong as you've set it up right. if you've added an icon
already dont worry the script will figure it out.
directory paths dont matter with this one, aslong as inside your YzDock
folder u have it -> \icons\ical\images\*.png <- your fine
note: the batch file must be ical.bat.
--->
@echo off
if [%min%]==[1] goto 2
set min=1
start /min ical.bat
goto end
:2
set min=
cls
taskkill /F /IM YzDock.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 ..\..\YzDock.exe
del %temp%\date.txt
cd ..\..
echo.|type itemlist.ini|find /I "ical\iCal.png"
if errorlevel 1 echo iCal type.app %CD%\icons\iCal\iCal.exe - %CD%\icons\iCal\ show.normal ical\iCal.png>>itemlist.ini
:end
exit
<---
ny questions or problems im only a message away
Ive actually gotten used to it opening a new dock, its good cause you put it in your startup folder and when Y'z dock starts up, its always got the right date. ![]()
thats fine, but this does that too
I must be doing something wrong with the batch file. I opened notepad and copy pasted your script and named it ical.bat and put it into the folder that contains the ical .exe - it's not working.
edit* - ok now the date change but after several clicks and wanting to move some file ( I cancelled)
how do u mean "ok now the date change but after several clicks and wanting to move some file ( I cancelled)" there shoudnt be any prompts, and certainly no clicks required. what file does it want 2 move?
Is it ok if I post instructions for objockdock users?
yea thats fine, and if u need a little help just ask
I've already got it working, just wanted to get permission to post your info as I used your batch script to make it work on objectdock. Thanks for the help btw ![]()
Just a heads up !! I was having enormous problems with the scheduled tasks and making iCal work the way the instructions said to, but I tried Unknown's little bat file and the darn thing works like a dream. I just put the ical.bat in my start up folder and the calendar always displays the right date.
I am very glad that Unknown solved this little mystery !!!!
FatAxl
ny time
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
this docklet is great!
i used theunknown's batch thing and it works great
but how do i get it to update automatically without restarting?
does the method in the docklet readme work with theunknown's batch?
thanks
All I did was click on the exe without the dock running > then it launched the update program, updated the date then started the dock for me. No problems here.
everything would work fine if the path where the yzdock is installed does not have a space in it....would it be possible to change the program that creates the temp.bat to include quotes in the path...eg. instead of C:\Program Files\yzdock to 'C:\Program Files\yzdock'
The temp.bat would work then.
ktharms, use my batch file, paths dont matter with that.
The batch file works great, theunknown (since my Y's Dock dir is at "C:\Program Files\Y's Apps\Y's Dock\icons\iCal\")! But for some odd reason it opens the windowsXP search program after it's done updating the image. Why is that? Any way to stop it?
Thats extremely odd. I hav no idea y thats happening.
you best bet would be to find out which line's running it.
to do this press enter after every line and put "pause". So every second line is a puase commnad.
tnen change the "@echo off" at the top to "@echo on".
run the script and tell me which line is causing it to open search.
that'll make things a little easier i hope.
Do you mean like this?
@echo on
if [%min%]==[1] goto 2
pause
set min=1
pause
start /min ical.bat
pause
goto end
pause
:2
pause
set min=
pause
cls
pause
taskkill /F /IM YzDock.exe
pause
attrib -r -a -s -h %temp%\date.txt
pause
del %temp%\date.txt
pause
attrib -r -a -s -h ical.png
pause
del ical.png
pause
set png=
pause
echo.|date|find "current">%temp%\date.txt
pause
FOR /F "tokens=6 " %%i in (%temp%\date.txt) do @echo %%i>%temp%\date.txt
pause
FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j
copy images\%png%.png ical.png
pause
start ..\..\YzDock.exe
pause
del %temp%\date.txt
pause
cd ..\..
pause
echo.|type itemlist.ini|find /I "ical\iCal.png"
pause
if errorlevel 1 echo iCal type.app %CD%\icons\iCal\iCal.exe - %CD%\icons\iCal\ pause
show.normal ical\iCal.png>>itemlist.ini
pause
:end
pause
exit
pause
The console comes up and it displays this:
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>taskkill /F /IM YzDock.exe
SUCCESS: The process "YzDock.exe" with PID 3368 has been terminated.
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>attrib -r -a -s -h C:\DOCUME~1\GRA
PHI~1\LOCALS~1\Temp\date.txt
File not found - C:\DOCUME~1\GRAPHI~1\LOCALS~1\Temp\date.txt
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>del C:\DOCUME~1\GRAPHI~1\LOCALS~1\
Temp\date.txt
Could Not Find C:\DOCUME~1\GRAPHI~1\LOCALS~1\Temp\date.txt
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>attrib -r -a -s -h ical.png
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>del ical.png
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>set png=
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>echo. | date | find "current" 1>C:
\DOCUME~1\GRAPHI~1\LOCALS~1\Temp\date.txt
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>FOR /F "tokens=6 " %i in (C:\DOCUM
E~1\GRAPHI~1\LOCALS~1\Temp\date.txt) do @echo %i 1>C:\DOCUME~1\GRAPHI~1\LOCALS~1
\Temp\date.txt
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>FOR /F "tokens=1,2,3* delims=/" %i
in (C:\DOCUME~1\GRAPHI~1\LOCALS~1\Temp\date.txt) do set png=%i_%j
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>set png=03_28
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>copy images\03_28.png ical.png
1 file(s) copied.
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>start ..\..\YzDock.exe
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>del C:\DOCUME~1\GRAPHI~1\LOCALS~1\
Temp\date.txt
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>pause
Press any key to continue . . .
C:\Program Files\Y's Apps\Y's Dock\icons\iCal>cd ..\..
C:\Program Files\Y's Apps\Y's Dock>pause
Press any key to continue . . .
[COLOR=red]C:\Program Files\Y's Apps\Y's Dock>echo. | type itemlist.ini | find /I "ical\iC
al.png" [/COLOR]
[COLOR=blue]**Note: This is when the search page comes up. I think the term "find" is what is causing this.[/COLOR]
C:\Program Files\Y's Apps\Y's Dock>pause
Press any key to continue . . .
So what do you think could be doing it?
Aqua-Soft Forums