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 could also use a simple one, that just shows the number of new mails. Ex. New Mails: 3.

heres the only thing you need then

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 finalText to ("No new mail")
		else if unreadCount = 1 then
			set finalText to ("New Mail: " & unreadCount)
		else if unreadCount > 1 then
			set finalText to ("New Mails: " & unreadCount)
		end if
	end tell
end if
finalText
 
heres the only thing you need then

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 finalText to ("No new mail")
		else if unreadCount = 1 then
			set finalText to ("New Mail: " & unreadCount)
		else if unreadCount > 1 then
			set finalText to ("New Mails: " & unreadCount)
		end if
	end tell
end if
finalText

Again. Thank you very much!
 
Grouping

Hi All

I am new to the forum and only been using Geek Tools for a couple of weeks.

Found some great tips and assistance on the site and managed to get most of the stuff functioning with out screaming for assistance.

Once thing I was wondering about is if there is a function that allows you to group all the scripts together to enable you to move around the desktop as one.

For example the HTC weather scripts.

Is this possible.


Nigel
 
I am having problems with my geektools scripts when i first start up my 2010 MacBook Pro. I have attached 2 pictures. The first one is what it looks like when the computer starts up. Everything is fine except the weather picture. I have to manually right-click on the geektoops icon in my top taskbar and refresh all in order for the weather picture to show up. the 2nd screen shot is what its supposed to look like. Why do i have to do this?

Link to to the wallpaper?

Many thanks.
 
Hi All

I am new to the forum and only been using Geek Tools for a couple of weeks.

Found some great tips and assistance on the site and managed to get most of the stuff functioning with out screaming for assistance.

Once thing I was wondering about is if there is a function that allows you to group all the scripts together to enable you to move around the desktop as one.

For example the HTC weather scripts.

Is this possible.


Nigel

Asked and answered several times in this thread.....answer is no.
 
Page 17 post #404

Not what Im talking about, I already have that. I want to get the Detailed Local Forecast. For Example:

Today: Partly cloudy. High around 80F. Winds WSW at 5 to 10 mph.

Tonight: Partly cloudy. Low 56F. Winds light and variable.

Tomorrow: Cloudy with occasional showers. High near 75F. Winds NE at 5 to 10 mph. Chance of rain 50%.
 
Need some help

Hey guys, I've been fiddling around with GeekTool for the last 2 hours or so, and I can't figure out how to display the weather of Melbourne, Australia properly.

All I want is the temperature (in degrees C) and the condition i.e Clear.

Any help would be appreciated.

Cheers.
 
This is mine

With the macrumors shell, is there a way for me to have a lot more control over the text, in that I wish to set line breaks, remove the two lines before the news stories appear etc?

I'm using this shell: curl https://www.macrumors.com/macrumors.xml | sed -e '/title/b' -e '/description/{n;p;}' -e d | sed -e 's/"/"/g' | sed -e 's/<br \/>//g' | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'

Picture1-9.png


Off topic, does anyone know why tWhirl persists in not showing the icon I changed it to?


This post is ages old - hopefully the question can be answered.

Where did you get those icons from? Is it just a psd that you created? (If so, can you send me it? along with the font/font name that you used)
 
I'm pretty sure I've seen that icon set on deviantart. It'll be in Customization>Icons>Dock Icons, assuming it's there at all:)

Yea I saw it there a few years back. I actually searched there last night but didn't find it.

Was hoping the poster had his own copy


It wouldn't be terribly hard to replicate but it is just nice at that size and with that typeface
 
I figured out how to display the Detailed Local Forecast, it is on page 66 Post #1633, and 1639.

Anyway, here is what I have so far. It's a work in progress as Im sure you all know. :) Today: is blank because it isn't on Yahoo's weather site, it should fill in tomorrow morning.

And the blue text isn't that blurry (stupid JPEG compression :))
 

Attachments

  • desktop.jpg
    desktop.jpg
    537.7 KB · Views: 397
Can anyone successfully display an Australian city's temperature?

Here's the Perth shell script in Celsius with a degrees symbol
Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0089&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1
 
Here's the Perth shell script in Celsius with a degrees symbol
Code:
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0089&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1

Thank you very much for that.

I'm interested in Melbourne's weather, is it simply a matter of finding Melbourne's unique Yahoo code?

EDIT: scratch that, I've managed to work it out. Thanks heaps.

1 more thing, I've managed to display "Mostly Cloudy, 9 C". Is there any way to add the degree symbol, and have it displayed so that "Mostly Cloudy" is 1 line above the temp?

Thanks again.
 
If the degrees symbol isn't working, try a different font as some do not include the degrees symbol. As for the weather condition (Mostly Cloudy), I use a separate script and put it directly above the temperature.
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=ASXX0089&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' -e 's/, [0-9]* [A-Z]//' | tail -n1
 
If the degrees symbol isn't working, try a different font as some do not include the degrees symbol. As for the weather condition (Mostly Cloudy), I use a separate script and put it directly above the temperature.
Code:
curl --silent "http://weather.yahooapis.com/forecastrss?p=ASXX0089&u=c" | grep -E '(Current Conditions:|[A-Z]<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' -e 's/, [0-9]* [A-Z]//' | tail -n1

Perfect, thanks heaps.
 
Here's mine so far. Haven't decided what to do with iCal events yet! I want them somewhere, just don't know where! :D


Would you mind sharing how you got the ical output like that?

I was following this thread and reading bobob's posts, but I only got so far as to have his same stylings+my calender colors.

I would love to have something as simple as yours.
 
I figured out how to display the Detailed Local Forecast, it is on page 66 Post #1633, and 1639.

Anyway, here is what I have so far. It's a work in progress as Im sure you all know. :) Today: is blank because it isn't on Yahoo's weather site, it should fill in tomorrow morning.

And the blue text isn't that blurry (stupid JPEG compression :))


HTC Geeklet looks great!:D

I’ve done a simpler darker version to it now.
 

Attachments

  • Screen shot 2010-10-02 at 3.15.21 AM.png
    Screen shot 2010-10-02 at 3.15.21 AM.png
    73.6 KB · Views: 145
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.