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.
When When I start playing a song in Bowtie the same Growl notification is displayed 2-3 times. Any way to solve this problem?
attachment.php
 

Attachments

  • Bowtie picture.png
    Bowtie picture.png
    160 KB · Views: 4,402
for my weather, its fine if it is a one word thing as in "clear" but when it should say stuff like "partly cloudy" it says "partlycloudy" does anybody know why there isnt a space?

Also, is there a way that I can just make the weather messages images?

While I can't help with the text weather conditions (it's much easier to post the problematic script when asking for help so people can check it for problems) without the script, it is possible to have the current weather conditions displayed as an image.

Anyway, the weather is shown using two separate shell scripts: (and requires cURL)
1. curl --silent "http://weather.yahoo.com/forecast/##### ###.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png
------>where ######## is your location on yahoo weather (ie go to yahoo weather, search your location and paste this into the script over ######## eg ontario california has a location code of USCA0806
2. file:///tmp/weather.png

Hope this helps. If you post the script for the weather I'll have a look at it later today if you want.
 
For a calendar with the current date colored, you can use two separate scripts:

Calendar:
cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./ /g') /"

Date:
cal | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/./#/g') /;s/[0-9a-zA-Z]/ /g;s/\#\#/$(date +%e)/g;s/\#/$(date +%e)/g"


Position the Calendar script where you want it, duplicate it, then replace the code with with the Date script, and change your font color.

picture1pqn.png



Settled on this for now, on my second screen, as my primary screen rarely has visible desktop space.
picture52.png


Edit: Changed everything significantly.
 
Thanks Everyone!

I bought my first Mac two weeks ago, a 24" 3.06 iMac, not my first Apple though - my first one was an Apple IIc with a 9" green screen (1985?).

Anyway, my first post here and I wanted to say thanks! I've spent the past several days going through these posts figuring out what works and what needs more research. My desktop was literally littered with different outputs from many different scripts. I've hidden the ones that were ugly and could not figure out how to format.

What resulted is this:

NewDesktop.jpg


Keep in mind I'm still experimenting.

Thanks Again,
Tim
 
While I can't help with the text weather conditions (it's much easier to post the problematic script when asking for help so people can check it for problems) without the script, it is possible to have the current weather conditions displayed as an image.

Anyway, the weather is shown using two separate shell scripts: (and requires cURL)
1. curl --silent "http://weather.yahoo.com/forecast/##### ###.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png
------>where ######## is your location on yahoo weather (ie go to yahoo weather, search your location and paste this into the script over ######## eg ontario california has a location code of USCA0806
2. file:///tmp/weather.png

Hope this helps. If you post the script for the weather I'll have a look at it later today if you want.

I am kind of new here. I cannot seem to get "curl" to work. I have been able to get lynx to work on other "geektools". Here is my code:
Code:
curl --silent "http://weather.yahoo.com/forecast/CAXX0547.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png

file:///tmp/weather.png

Nothing displays. I have set it up in one "shell command". I am also having issues getting the "curl" to work with the stock quotes as well. Might have something to do with "curl" in general. Any help would be appreciated.

Not sure what my next step is?

Info: OS X 10.5.7

Thanks.
 
Here's a vertical calendar that i came up with... its sorta "hacky" but at least it autoupdates the days. Use two separate entries:

Days
cal | sed -e '1d' -e '2p;2p;2p;2p' -e '3d' -e '4d' -e '5d' -e '6d' -e '7d'

Numbers
cal | sed -e '1d' -e '2d' -e '2p;2p;2p;2p' | sed -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' -e '$!N;s/\n/ /' | sed "s/^/ /;s/$/ /;s/ $(date +%e) / $(date +%e | sed 's/././g') /"

The trick is to make the width of the entry really thin, and the height really tall. That way you get the line breaks. Just line up the name of the day to match the appropriate number. Im not sure if the days will match the correct # when it switches to next month, so you might have to reposition that... I guess we'll see :)

If you want the name of the day to come first or vice-versa, just move the one over to the other side, and set the text to justify right/left accordingly...

geektool_cal_vertical.jpg
 
Once I've created more than one script and they are on my desktop is there a way to group them all together so they can be moved all at once? I spent a bunch of time aligning them all up together but I don't want to move them individually.

Thanks in advance.
 
font color

PLEASE SOMEONE ANSWER THIS QUESTION

I have been incredibly frustrated for a couple days now after getting geektool. I can't change my font colors. no matter how i try to select a new color, it won't apply it. what's going on??? thanks for any help.

I'm able to change my font & size but not color. WTF??

Nevermind,

I figured it out. I was clicking the text color wrong, somehow...
 
I am kind of new here. I cannot seem to get "curl" to work. I have been able to get lynx to work on other "geektools". Here is my code:
Code:
curl --silent "http://weather.yahoo.com/forecast/CAXX0547.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png

file:///tmp/weather.png

Nothing displays. I have set it up in one "shell command". I am also having issues getting the "curl" to work with the stock quotes as well. Might have something to do with "curl" in general. Any help would be appreciated.

Not sure what my next step is?

Info: OS X 10.5.7

Thanks.

OK, the first thing piece of advice I can offer is that two separate shells are required for this script. eg:
Shell One:
Code:
curl --silent "http://weather.yahoo.com/forecast/CAXX0547.html" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png
and shell two:
Code:
file:///tmp/weather.png
The first shell will not produce a visible output, but is required for the second shell to display (and update) the weather image (ie both shells have to be selected and 'running' for the image to work).

If you are unable to get it working now, you could try reinstalling the latest cURL from here Other than that, I'm afraid I can't help - I only got cURL working with an hour or so of trial and error.

Hope this helps
 
Okay so I've seen that some people have been having trouble with adding iTunes in Geektool. I'm going to write a tutorial on how I did it.

First thing you need to do is open Script Editor. It should be in /Applications/AppleScript/Script Editor. I think I may have moved mine so it might be in /Applications/Utilities/AppleScript/Script Editor.


1. Copy this code into the Script Editor.
Code:
on run
	set info to ""
	tell application "System Events"
		set num to count (every process whose name is "iTunes")
	end tell
	if num > 0 then
		tell application "iTunes"
			if player state is playing then
				set who to artist of current track
				set what to name of current track
				set info to what & " by " & who as string
			end if
		end tell
	end if
	return info
end run

2. (Optional) You can edit that code so that it returns different options like play count, ratings, albums etc.

3. Save the selected file somewhere where you will remember.

4. Open Geektool and create a New Entry. Select Shell from the drop down box.

5. Copy this code into command area.
Code:
osascript [u]/LocationOfScript[/U].scpt
*Important replace the underlined area with the exact file location of the script you saved in step 3. Example: /Library/Scripts/Basics/iTunesScript.scpt

6. Edit your font size/colour and location.

You're done. Your end result will be: Song by Artist

If you want to edit the original AppleScript script you can do so and save them. It's not hard to figure out how it works and you can end up with something like this.
 

Attachments

  • My Screen 1.png
    My Screen 1.png
    142.8 KB · Views: 139
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.