Mac Users of NSG

wow something went wrong...
ok make a shell and put this in the box that says command.
curl --silent "http://weather.yahooapis.com/forecastrss?p=USMN0005&u=f" | grep -E '(Current Conditions:|F
//' -e 's///' -e 's///' -e 's/
//' -e 's///' -e 's///'

This should give you the description of the weather and the temp. Idk how to make the icon of the whether come up
 
[/b]

I wonder if that'll unbold the thread...

I've not changed my background in ages, I'm quite happy with it... though I might want to change it in the future. Does anyone know if you can save a geektool layout so you can change your background between a few different ones on a regular basis and have a geektool preset to default to for each one?
 
yep, but you need to start remaking it in a saved geektool. you cant save it after youve done it.

on the right it says "manage groups"
click on the plus button, and create a new group then make sure only the one that you want to customize is checked, then create your desktop.
if you want to make another one, just make sure that only that group is checked when you start making it

if you want to load a saved group after you turn off your computer or something like that, check that group and then grab a shell box and drag it onto the screen, then everything should re-appear

inbox me if you have questions. but just play around with one or two shells to figure stuff out so you dont spend 30 min on creating a desktop, and then fuck up the groups
 
right on, thanks. I've got everything in default group now, so if I make a new setup in a new group, I should be golden. Cool.
 
After many hours spent obsessing over fonts, sizing, spacing, and arrangement, I have a desktop I am satisfied with. I'm going to miss Pollard, but I think I'm going to stick with this for a while.

1300174272-931488-600x375-1300174222Screen_shot_2011-03-15_at_12.28.35_AM.png
 
One more question... how do I get the time to look more like it would on a digital clock as opposed to using any regular font for it?
 
Joe.P - the code for that calendar is super super simple, all you do is type in "cal" without quotes, then change the font to fix formatting errors.

To make the time more digital clocky, just try out different fonts... it's all you can really do. Here are some variations for the clock code:

With an '0' in front of the hours 1-9 use: date +%I:%M

Without the '0' in front of the hours 1-9, use: date +%l:%M

24 hour clock, with seconds: date +%H:%M:%S

24 hour clock, without seconds: date +%H:%M
 
oh ya? well i figured that much i mean it must be really easy! right i mean if you guys are doing it, it must be really simple! wow thanks for letting me know! i mean i would have NEVER guessed!
 
it just takes time and effort. i had no idea what this thing was before i saw this thread, and then played with it for like 4 hours and got extremely frustrated at times, and i seem to know atleast how to use the things i find on the internet involving different scripts.

just set aside 4 hours to toy around with it. its the only way youll figure it out
 
[/b]

Just unbolding the thread... and that's really not that much easier 'cause the formatting's gone. Still not tough to go back a page or two...
 
I'v made quite a few today, and plan on starting from scratch. anybody got any geeklets besides date/time/weather that are pretty cool?

(my current one)

SafariScreenSnapz001.jpg
 
there is this thread all about it... i duno where it is tho.

but actually, itunes songs, and any RSS feed can be shown on ur desktop
i had lots of NS allover it, but it stole all my CPU so i decided to stop it.
you need an automator script to search for the URL and make a .scpt or .txt file (i forget) then a shell command to desplay it, the same as the itunes one works.
(all these
rss_logo_small.gif
pics are the RSS feeds that can be used in this) i also had my notifications and news feed from facebook on my desktop.

took them all off, couldnt run final cut pro and automator at the same time :P
 
I like my iTunes one, here goes:

You will need to make a "file", and an iTunesInfo.scpt file that you'll store on your computer. I'll explain: the scpt file does the work when called by the "file" shell, which will display the result.

Open TextEdit (Applications>TextEdit) and make sure that you have it set to "plain text" and NOT "rich text" in the Preferences menu. Then, paste (WITHOUT the __CODE__ bits, those are just to clarify what is part of the code and what's not):

_________________CODE__________________

on run

set info to ""

tell application "System Events"

set num to count (every process whose name is "iTunes")

end tell

if num < 1 then

return ("iTunes:" & return & "|| You should put on some" & return & "|| Music before you" & return & "|| You die a quiet death")

end if

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 onwhat to album of current track

set ppos to player position

set stime to duration of current track

set ttime to ppos / stime * 100

set ttime to round ttime rounding up

set when to time of current track

set info to ("iTunes: " & ttime & "% of " & when & return & "|| " & what & " " & return & "|| " & who & " " & return & "|| " & onwhat)

end if

if player state is paused then

set who to artist of current track

set what to name of current track

set onwhat to album of current track

set ttime to "(paused)"

set info to ("iTunes " & ttime & " " & return & "|| " & what & " " & return & "|| " & who & " " & return & "|| " & onwhat)

end if

end tell

end if

return info

end run

______________________/CODE____________________

Click "Save As" and save the file as "iTunesInfo.scpt". You can save it anywhere you like, just make sure you know how to copy the path to the file. If you don't, make a folder called "geektool" in your documents, and save it in there, so that you can just use the path I provide down there:

In the geekTool preferences, make a "file" shell, and put this in it:

osascript /Users//documents/geektool/iTunesInfo.scpt

Change to your username.

If you want to use a different location, that's cool. Just make sure that you've got the correct path to the iTunesInfo.scpt file.
 
just change it to .scpt after you save it as plain text
then use the script editor app to test it
 
for all of you new to this geektool thing.
PM me ur email (telling me u want geektool stuff) and i have a text file with lots of the scripts and a tutorial to things.

 
epic post? formatting will be off... this is what im emailing to ppl

i made this for all NSers who are asking for geektool help. should cover lots


For Forecast picture:
You will need 2 scripts, one in a Shell and one in an image
1. In the Shell you put:-------------------------------------------------------------------------------------curl --silent "http://ca.weather.yahoo.com/canada/ontario/toronto-4118/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png\-------------------------------------------------------------------------------------
Replace the toronto URL with the city of your choice. just go on yahoo weather and search ur city.
2. in the Image you put-------------------------file:///tmp/weather.png-------------------------
And the image will pop up. dont forget to change the refresh rate from 0 to.... 1? 100? whatever.
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
(remember change "CAXX0504" to your city.
Go here http://www.weather.com/weather/rss/subscription/
Then submit your city, hit enter
now look at the address bar
should look LIKE this "http://www.weather.com/weather/rss/subscription/CAXX0333"
the last combo of numbers and letters are mine, when u submit ur city youll get a diff combo
copy and paste your combo into the scripts and its now set for ur town)
-------------------------------------------------------------------------------------
Temp "2C" 
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=CAXX0504&u=c" | grep -E '(Current Conditions:|[A-Z]
//' -e 's///' -e 's///' -e 's/
//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1
-------------------------------------------------------------------------------------
Forecast "Partly Cloudy"
curl --silent "http://weather.yahooapis.com/forecastrss?p=CAXX0504&u=c" | grep -E '(Current Conditions:|[A-Z]
//' -e 's///' -e 's///' -e 's/
//' -e 's///' -e 's///' -e 's/, [0-9]* [A-Z]//' | tail -n1
-------------------------------------------------------------------------------------
2-Day Forecast
curl "http://xml.weather.yahoo.com/forecastrss?p=CAXX0504&u=c" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/
//' -e 's/
//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/Hi\:\ \(.*\)\ Lo\:\ \(.*\)/\?Hi\: \1\ Lo\:\ \2/" | sed "s/\?\(.*\)/\\1/"
-------------------------------------------------------------------------------------
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Date/Time

Seconds 
Date +%S

Month (full)
Date +%B

day "fri"
date +%a

Date +%M (mins)
Date +%I (hrs)

Just press random keys and figure all the other ones out.
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-More Scripts:-------------------------------------------------------------------------------------curl --silent "http://xml.weather.yahoo.com/forecastrss?p=CAXX0504&u=c" | grep -E '(Current Conditions:|C
//' -e 's///' -e 's///' -e 's/
//' -e 's///' -e 's///'-------------------------------------------------------------------------------------curl --silent "http://weather.yahooapis.com/forecastrss?p=CAXX0504&u=c" | grep -E '(Current Conditions:|[A-Z]
//' -e 's///' -e 's///' -e 's/
//' -e 's///' -e 's///' -e 's/, [0-9]* [A-Z]//' | tail -n1-------------------------------------------------------------------------------------curl "http://xml.weather.yahoo.com/forecastrss?p=CAXX0504&u=c" | grep -e "Forecast:" -A 2 | tail -n 2 | sed -e 's/
//' -e 's/
//' | sed "s/\(.*\)\.\ \(.*\)/\1\?\2/" | tr "?" "\n" | sed "s/Hi\:\ \(.*\)\ Lo\:\ \(.*\)/\?Hi\: \1\ Lo\:\ \2/" | sed "s/\?\(.*\)/\\1/"-------------------------------------------------------------------------------------curl --silent "http://xml.weather.yahoo.com/forecastrss?p=CAXX0504&u=c" | grep -E '(Current Conditions:|[A-Z]
//' -e 's///' -e 's///' -e 's/
//' -e 's/[A-Z a-z]*, //' -e 's/\(.*\) F/\1 °F/' -e 's/\(.*\) C/\1 °C/' | sed 's/ //' | tail -n1-------------------------------------------------------------------------------------Try them all (duplicates from above)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-For the Date and time
Type Date +%B
in the command box of the preference window for a "Shell" (shows up when you drag shell onto desktop)
and you can change the B to anything on ur keyboard and get different results. so you can get the clock, the date, the month, the hour, the second, the AM/PM the year etc just try them all XCVBNM are the bigger ones i think. they are case sensitive*And dont forget to change your refresh rate once you make a shell.
If you want to write text, like a title for something, or your city name or your name whatever type --------------------echo yourtexthere--------------------


ITUNES: in text edit.app put this (make a new file)
-------------------------------------------------------------------------------------
tell application "System Events" set powerCheck to ((application processes whose (name is equal to "iTunes")) count) if powerCheck = 0 then return "" end ifend telltell application "iTunes" try set playerstate to (get player state) end try if playerstate = paused then set trackPaused to " - Paused" else set trackPaused to "" end if if playerstate = stopped then return " Stopped" end if set trackID to the current track set trackName to the name of trackID set artistName to the artist of trackID set albumName to the album of trackID set totalData to "Track : " & trackName & trackPaused & "Artist : " & artistName return totalDataend tell
---------------------------------------------------------------------------------
then save as iTunesInfo.txt save it in documents>geektool(make a geektool folder)once saved, change the ".txt" to ".scpt"
then in a geektool command put
osascript /Users/YOURUSERNAME/documents/geektool/iTunesInfo.scpt

tada
 
Back
Top