Ok so I've got this so far after a night of playing...
![]()
Need something else though. Can't get the BBC news RSS to display which would be good. Anyone got any ideas?
Maybe I can help,
How do you want the rss to be displayed? (like all at once or only the latest?)
Can you give me the rss - link, i'm lazy =D
greetz
This is a simple script to more accurately show free disk space under the hard drive icon. (Why hasn't Apple fixed the dot-dot-dot issue yet?)
Going from this:
![]()
to this:
![]()
Using this:
Code:#!/bin/sh FREE=$(df -Hl | grep disk | awk '{print $4}' | cut -c -3) echo "500 GB, $FREE GB ledigt"
The font and its shadow isn't perfect, but it looks okay I think. And of course, this only works if you do not show information about objects on the desktop.
Decided don't really need RSS feeds, would clog it up a bit.
Got these on rotation at the mo:
![]()
![]()
![]()
![]()
I like it. Minimalist. Now to find some new icons... This is exciting. Woo.
Ooo, I really like your setup. If you don't mind, would you allow me to imitate it?
defaults write com.apple.finder CreateDesktop -bool false
Of course.
Desktops from this site:
http://fiftyfootshadows.net/category/desktops/
Everything else is Geektool.
I've since hidden the Hard Drive icon using this handy command line thingymabob:
Code:defaults write com.apple.finder CreateDesktop -bool false
Sweet, thanks! I was wondering if you could give me the itunes code you have. That'd be awesome 😀.
This
http://bowtieapp.com/
with this theme
http://macthemes.net/forum/viewtopic.php?id=16790940
(TypographicBlurred)
Thanks again! Is there any way of displaying what's playing on itunes via geektool, or do I have to download bowtie.
BTW, This is how it looks so far, any suggestions?
![]()
echo '
tell application "Finder"
if not (exists process "iTunes") then
return "iTunes is sleeping"
else if exists process "iTunes" then
tell application "iTunes"
try
return ((name of current track) & return & (artist of current track))
on error
return "no song is playing"
end try
end tell
end if
end tell' | osascript
Thanks again! Is there any way of displaying what's playing on itunes via geektool, or do I have to download bowtie.
BTW, This is how it looks so far, any suggestions?
I must be the only one who would find any current weather warnings useful as a GT script. I posted a question months ago, but no one seemed to have any ideas. I'll repost and hope this catches someone's eye. I would just like to be able to see any current weather warnings at a glance, from either the National Weather Service (e.g. Flood Warning) or Wunderground (e.g. Flood Warning) from one zip code.
I've read through this thread the past two months, and am grateful for all the scripts floating around, thanks all!
I was hoping someone could point me in the right direction to find a certain script, or perhaps jot one down. I've looked at some scripts and I have an idea how they work but would never be able to write my own.
I use the script that uses wunderground for the forecast phrase, and the yahoo weather scripts that show current weather conditions and temperature with a weather icon, but I would like to see a script that can highlight current weather watches, warnings, and advisories for a given location (i.e. county or zip code).
As an example, which I'll try attaching as a screenshot, the next few days I'm under a Winter Storm Warning (like a large chunk of the country). Since I like wunderground, I see that this warning is posted above the forecast in red lettering: "Winter Storm Warning in effect from 6 am Thursday to 6 am CST Saturday..."
This is the exact information that would be useful, and hopefully others would benefit too. Is it possible to take whatever watch or warning that shows up in this position and put it into a GT script?
Thanks in advance for any consideration!
yes there is ;-)
copy and past in a shell geeklet
Code:echo ' tell application "Finder" if not (exists process "iTunes") then return "iTunes is sleeping" else if exists process "iTunes" then tell application "iTunes" try return ((name of current track) & return & (artist of current track)) on error return "no song is playing" end try end tell end if end tell' | osascript
I like. Think the weather picture is behind the black bar though, right click -> bring to front.
Bowtie is really really great, it sits on the desktop like a geektool thing so it's no fuss.
Hi,
It seems like you are in need of help...
Those warnings, do they need to be displayed by the same script or can it be a different script, in that way you can move around the warnings as you like it? otherwise it will be a newline that sits underneath the current conditions...
Can you give me the URL then I can tell if its going to work or not ;-)
cheers
im still confused, read almost the whole thread and still cant figure it out. i have geektool 3
tell application "Finder"
set dayss to ""
set AppleScript's text item delimiters to "up"
set upt to text item 2 of (do shell script "uptime")
if upt contains "days" then
set AppleScript's text item delimiters to "days"
set dayss to (text item 1 of upt) & "days,"
end if
if upt does not contain "hr" and upt does not contain "mins" then
if dayss ≠ "" then
set AppleScript's text item delimiters to "days,"
set upt to text item 2 of upt
end if
set AppleScript's text item delimiters to ","
set other to text item 1 of upt
set AppleScript's text item delimiters to ":"
set other_hr to dayss & (text item 1 of other) & " hrs, "
set res to other_hr & (text item 2 of other) & " mins"
end if
if upt contains "hr" then
set AppleScript's text item delimiters to "hr"
set res to dayss & (text item 1 of upt) & "hrs"
end if
if upt contains "min" then
set AppleScript's text item delimiters to "min"
set res to dayss & (text item 1 of upt) & "mins"
end if
return res
end tell
when i post that code nothing happens what am i doing wrong?
osascript Users/YOURUSERNAME/bin/Uptime.scpt
tell application "Finder"
set warn to do shell script "curl \"forecast.weather.gov/MapClick.php?map.x=199&map.y=154&site=pub&zmx=1&zmy=1\""
set AppleScript's text item delimiters to "<span class=\"warn\">"
set warn to text item 2 of (warn as string)
set AppleScript's text item delimiters to "</span>"
set warn to text item 1 of warn
set AppleScript's text item delimiters to ""
return warn
end tell
Typhoon,
It worked, now it up to you how you'd like to see it...
Copy, paste and save this code below as an applescript
Enter in a new shellgeeklet > osascript "path/to/your/script.scpt"
Code:tell application "Finder" set warn to do shell script "curl \"forecast.weather.gov/MapClick.php?map.x=199&map.y=154&site=pub&zmx=1&zmy=1\"" set AppleScript's text item delimiters to "<span class=\"warn\">" set warn to text item 2 of (warn as string) set AppleScript's text item delimiters to "</span>" set warn to text item 1 of warn set AppleScript's text item delimiters to "" return warn end tell
if you want more stuff from that web then ask and i'll see whats possible.
PS. I allready made an extension for the above script. This one also grabs the written forecast for the next day. if you are interested ....
greetz
tell application "Finder"
set web_content to do shell script "curl \"http://forecast.weather.gov/MapClick.php?map.x=225&map.y=66&site=oun&zmx=1&zmy=1\""
-- this is the warning!!
set AppleScript's text item delimiters to "<span class=\"warn\">"
set warn to text item 2 of (web_content as string)
set AppleScript's text item delimiters to "</span>"
set warn to text item 1 of warn
set AppleScript's text item delimiters to ""
-- forecast for the oncomming days.
set AppleScript's text item delimiters to "</span></a><br></div><br> "
set forecast to paragraphs 2 thru end of (text item 2 of (web_content as string))
set AppleScript's text item delimiters to "<br><br></td>"
set forecast to text item 1 of (forecast as string)
set AppleScript's text item delimiters to "<br><br><b>"
set forecast to (text item 1 of forecast) & return & (text item 2 of forecast) & return & (text item 3 of forecast)
set AppleScript's text item delimiters to "</b>"
set forecast to every text item of forecast
set AppleScript's text item delimiters to "<b>"
set forecast to every text item of (forecast as string)
set AppleScript's text item delimiters to ""
return (warn & return & return & forecast as string)
end tell
No problem ;-)
Underneath you'll find the written forecast. I've been looking for the multiple warnings but for some reason there is only 1 warning today. =D
So waiting for more warnings and then I can poke around to get it right.
enjoy.
This scripts shows you the first warning (for now) and the written forecast (today's evening, tomorrow and tomorrows evening)
Code:tell application "Finder" set web_content to do shell script "curl \"http://forecast.weather.gov/MapClick.php?map.x=225&map.y=66&site=oun&zmx=1&zmy=1\"" -- this is the warning!! set AppleScript's text item delimiters to "<span class=\"warn\">" set warn to text item 2 of (web_content as string) set AppleScript's text item delimiters to "</span>" set warn to text item 1 of warn set AppleScript's text item delimiters to "" -- forecast for the oncomming days. set AppleScript's text item delimiters to "</span></a><br></div><br> " set forecast to paragraphs 2 thru end of (text item 2 of (web_content as string)) set AppleScript's text item delimiters to "<br><br></td>" set forecast to text item 1 of (forecast as string) set AppleScript's text item delimiters to "<br><br><b>" set forecast to (text item 1 of forecast) & return & (text item 2 of forecast) & return & (text item 3 of forecast) set AppleScript's text item delimiters to "</b>" set forecast to every text item of forecast set AppleScript's text item delimiters to "<b>" set forecast to every text item of (forecast as string) set AppleScript's text item delimiters to "" return (warn & return & return & forecast as string) end tell