Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
I am having a problem with the calendar script! I type "cal" in the command line (minus the "") and this is what i get(see attached image). It is not aligned right. I am not sure how to fix it either. I also need to find out how to make the current date a dif color too.
 

Attachments

  • screen-capture.png
    screen-capture.png
    518.1 KB · Views: 145
I am having a problem with the calendar script! I type "cal" in the command line (minus the "") and this is what i get(see attached image). It is not aligned right. I am not sure how to fix it either. I also need to find out how to make the current date a dif color too.
Use a fixed-width font.
 
Countdown timer?

I looked through the first 30 pages of this thread and then got frustrated, so I apologize sincerely if this has been covered already.

I'm trying to get a countdown to appear through my geektool that says

__ days, __ minutes, __ seconds until____

So far I've been very unsuccessful both at figuring out the code myself and at finding an existing code that serves this purpose.

Can anyone offer any help? I really appreciate it!
 
I looked through the first 30 pages of this thread and then got frustrated, so I apologize sincerely if this has been covered already.

I'm trying to get a countdown to appear through my geektool that says

Here's a post in this thread that seems to of help partly. See if you're able to do what you want with it. At the top of the page there's a link for searching within this thread that I used to find it, just an FYI.
 
Here's a post in this thread that seems to of help partly. See if you're able to do what you want with it. At the top of the page there's a link for searching within this thread that I used to find it, just an FYI.

I did use the search and the sources didn't work for me, unfortunately. I'm a beginner at geektool, I got it yesterday and have mastered the basics, but I can't figure out my own code yet. :(

Essentially all I need is a code for the following: "___Days, ___ Hours, and ___ Minutes until the beginning of the end"

the date that I'm counting down to is november 19th of this year.

I've dedicated about 5 solid hours to this since last night and I've come to the point where my options were 1. give up, or 2. quit being stubborn and ask for help.

*Sigh*
 
I am having a problem with the calendar script! I type "cal" in the command line (minus the "") and this is what i get(see attached image). It is not aligned right. I am not sure how to fix it either. I also need to find out how to make the current date a dif color too.

Use a fixed-width font.

I have tried over 30 fonts and still nothing is working. If u look at the pic below, the 4th is on thrusday and then there is nothing on the first fri and sat. then the 5th starts back up on sunday. and there is anouther gap later on also. why is this happening?
 

Attachments

  • screen-capture.png
    screen-capture.png
    518.1 KB · Views: 130
I am using the command below to show the current SSID i am connected to. How do i put the work "Netowrk:" or "SSID:" before it. Right now it just says "dlink".... I want it to say "Network: dlink"

airport -I | grep -e '[^[:alnum:]_]SSID[^[:alnum:]_]' | awk '{print $2}'
 
I have tried over 30 fonts and still nothing is working. If u look at the pic below, the 4th is on thrusday and then there is nothing on the first fri and sat. then the 5th starts back up on sunday. and there is anouther gap later on also. why is this happening?

Try one of these fonts :
 

Attachments

  • Screen shot 2010-09-20 at 10.49.10.png
    Screen shot 2010-09-20 at 10.49.10.png
    16.6 KB · Views: 97
I looked through the first 30 pages of this thread and then got frustrated, so I apologize sincerely if this has been covered already.

I'm trying to get a countdown to appear through my geektool that says

__ days, __ minutes, __ seconds until____

So far I've been very unsuccessful both at figuring out the code myself and at finding an existing code that serves this purpose.

Can anyone offer any help? I really appreciate it!

Check out page 63 of this thread, and post 1553 in particular. You should be able to adapt that post for your needs.
 
Has anyone been having RAM usage issues with Geektool?

On my MBP, Geektool and WindowServ are both running around 600+MB of Real memory each, which kinda worries me.

I don't have alot of shells running either, just a simple clock (without seconds), the date, month, weather (and weather icon), and top CPU/memory processes.
 
Word of the Day

Has anyone come across script to put a Word Of The Day on a desktop using Geektool?
 
I would like to get a word of the day from lets say dictionary.com and show it on my desktop

if theres a rss feed, its possible.

heres what i use for my rss feed (what happened today)

Code:
curl http://www.infoplease.com/rss/dayinhistory.rss | grep CDATA | sed -e 's/\(.*\[\)//' -e 's/\].*//'
 
I am having a problem with the calendar script! I type "cal" in the command line (minus the "") and this is what i get(see attached image). It is not aligned right. I am not sure how to fix it either. I also need to find out how to make the current date a dif color too.

This is what I use for the calendar.

Code:
cal_head=`cal | head -1`; cal_tail=`cal | tail -7`; today=`date "+%e"`; echo "$cal_head"; echo "${cal_tail/${today}/\033[1;[B]31[/B]m${today}\033[0m}";

If you change the bit I have highlighted (31) you can change that 30, 31, 32, 33 etc for different colours.

For aligning font you just need to use a mono spaced font like Monaco
 
Need a gmail unreaded mails code. Anyone?
first, youre gonna have to use Mail, if you dont use it already.

then use this Applescript (open Applescript Editor in Utilities)
Code:
set newline to ASCII character 10
tell application "System Events" to set iCalIsRunning to (name of processes) contains "Mail"
set finalText to ""
if iCalIsRunning then
	tell application id "com.apple.mail"
		set unreadCount to (get unread count of inbox)
		if unreadCount > 0 then
			set theMessages to (messages of inbox whose read status is false)
			repeat with i from 1 to number of items in theMessages
				set thisMessage to item i of theMessages
				set fromMsg to (sender of thisMessage as string)
				set subjMsg to (subject of thisMessage as string)
				set dateRec to (date received of thisMessage as string)
				if subjMsg = "" then
					set subjMsg to newline & "     No Subject"
				else
					set subjMsg to newline & "     " & subjMsg
				end if
				set finalText to (finalText & fromMsg & " - " & dateRec & subjMsg & newline)
			end repeat
		end if
	end tell
end if
finalText

finally this command in geektool
Code:
osascript YOUR/PATH/TO/FILE.scpt

you can change the aspect of the output in the applescript.
have fun!
 
first, youre gonna have to use Mail, if you dont use it already.

then use this Applescript (open Applescript Editor in Utilities)
Code:
set newline to ASCII character 10
tell application "System Events" to set iCalIsRunning to (name of processes) contains "Mail"
set finalText to ""
if iCalIsRunning then
	tell application id "com.apple.mail"
		set unreadCount to (get unread count of inbox)
		if unreadCount > 0 then
			set theMessages to (messages of inbox whose read status is false)
			repeat with i from 1 to number of items in theMessages
				set thisMessage to item i of theMessages
				set fromMsg to (sender of thisMessage as string)
				set subjMsg to (subject of thisMessage as string)
				set dateRec to (date received of thisMessage as string)
				if subjMsg = "" then
					set subjMsg to newline & "     No Subject"
				else
					set subjMsg to newline & "     " & subjMsg
				end if
				set finalText to (finalText & fromMsg & " - " & dateRec & subjMsg & newline)
			end repeat
		end if
	end tell
end if
finalText

finally this command in geektool
Code:
osascript YOUR/PATH/TO/FILE.scpt

you can change the aspect of the output in the applescript.
have fun!

Wow. Thnx. Much sweeter than expected. I could also use a simple one, that just shows the number of new mails. Ex. New Mails: 3

Thnx again. Its pretty sweet.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.