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.
EDIT:
Is there a way for GeekTool to show the next movie in one's Netflix Queue using the rss feed?

EDIT 2:
I got the Netflix thing working.

Code:
curl --silent "http://rss.netflix.com/AtHomeRSS?id=NETFLIX_USER_ID_GOES_HERE" | grep -e "<item>" -A 1 | tail -n 1 | sed -e 's/<title>//' | sed -e 's/      //'  | sed -e 's/<\/title>//'

EDIT 3:
This one shows multiple movies in your Netflix Queue

Code:
curl --silent "http://rss.netflix.com/QueueRSS?id=NETFLIX_USER_ID_GOES_HERE" | grep -e "<title>"  | sed -e 's/<title>00//' | sed -e 's/<title>0//' | sed -e 's/<\/title>//' | sed -e 's/      //' | sed -e 's/<title>Netflix Queue//'

If you want some other Netflix based thing to appear just log into your Netflix account and click on RSS at the bottom and change out the "AtHome" or the "Queue" part of the code with the feed you want.[/QUOTE]

---

no one else seems to have noticed your post, but I did...
I can't get it to work...any help? every time I type it in, it comes back as "test" in the command line..

EDIT: I got it working, but it shows "item" and -- before ever movie in the list.. halp
i'd like to have a list of the next 5 movies in my upcoming netflix queue
 
oh and here's my desktop, any thoughts? :)
i saw that graffiti one a while back, and thought
i could definitely one-up him hehe
 

Attachments

  • desktop.gif
    desktop.gif
    563.4 KB · Views: 236
Is there a weather script that we can use our own custom images with?

I don't think anyone has done it. But coming from someone who knows relatively little about applescript, I think it would be fairly easy to set up with a little bit of info on what data is being pulled to give the forecast.
 
im trying to get the weather code to work that ws posted on page one im using the one witht he full URL but when i get the embed file to come up it says internal server error does that mean that theres somthing malformed witht he code or is it me
 
My version of "clean" desktop

New with MBP so right now I use the script to see what processes are running.
 

Attachments

  • desktop.jpg
    desktop.jpg
    195.8 KB · Views: 295
can you please post a code to this. I like this clean script

Hey mate,
um be a little more precies? what ones would you like?
Most of them are just simple scripts...and just changed the layout till i liked it...font is Helvetica Neau Ultra Light

Some of the scripts such as the itunes playing i have posted previously...
 
Hey mate,
um be a little more precies? what ones would you like?
Most of them are just simple scripts...and just changed the layout till i liked it...font is Helvetica Neau Ultra Light

Some of the scripts such as the itunes playing i have posted previously...

thanks man
i am referring to scripts that add date, and song name in the middle.. the whole thing looks neat and simple!
would you please share it!
 
One feature I wish GT had is a "grouping" setting...I have my flip clock set the way I like with image background, hours, mins, am/pm, date, day of week, and month...and then if I want to move it to another area on the screen I have to carefully reposition everything again. It should would be nice to "lasso" them all and they all move as a single unit....otherwise I love Geektool.
 

Attachments

  • graffiti-on-train.gif
    graffiti-on-train.gif
    1,016.9 KB · Views: 161
Hey you guys. Thanks so much for the scripts, I really appreciated the help. I read this entire thread and was so pleased with all of your responses. I actually learned a little coding just from reading your scripts and how you edited them. I'm really happy with what you guys have done.:D:D:D

However, I'm in need of a script to change my wallpaper. I have set up multiple geektool groups and they each require their own wallpaper to make the look authentic. I made an HTC Sense UI group and I would love it if I didn't have to change my wallpaper every time I feel like enabling it. Is there a way to make the wallpaper change when I enable the scripts? Like add a script that changes the wallpaper to the appropriate one when switching between groups?
 
Hey you guys. Thanks so much for the scripts, I really appreciated the help. I read this entire thread and was so pleased with all of your responses. I actually learned a little coding just from reading your scripts and how you edited them. I'm really happy with what you guys have done.:D:D:D

However, I'm in need of a script to change my wallpaper. I have set up multiple geektool groups and they each require their own wallpaper to make the look authentic. I made an HTC Sense UI group and I would love it if I didn't have to change my wallpaper every time I feel like enabling it. Is there a way to make the wallpaper change when I enable the scripts? Like add a script that changes the wallpaper to the appropriate one when switching between groups?

Hmm... How about something like putting your wallpaper as a GT image for each group? Put it in behind every other script in the group so that when you activate the group, that image covers up your actual wallpaper.
 
Hmm... How about something like putting your wallpaper as a GT image for each group? Put it in behind every other script in the group so that when you activate the group, that image covers up your actual wallpaper.

I was thinking about doing that, but is there another way? If not, that's fine. It just seemed like something really simple to do.
 
I was thinking about doing that, but is there another way? If not, that's fine. It just seemed like something really simple to do.

There probably is a better (or more correct) way to change your wallpaper using a script, I guess... But I don't know much on writing bash, and it still is probably the simplest way to do it:p
 
There probably is a better (or more correct) way to change your wallpaper using a script, I guess... But I don't know much on writing bash, and it still is probably the simplest way to do it:p

Okay, so I put up the images and they all look great. Only problem is, it doesn't always work. Most of the time, it won't stay in the background. The other times, it stays, but after I exit System Preferences, the items stay highlighted and moveable. idk if I'm running too many scripts at once or what, because GeekTool is buggy every time I do this. :(
 
Hi,

This is my first time posting here, but I've been reading through this thread for a while. I am using icalBuddy and Geektool, and I'm using relative dates. How can I get it so that instead of displaying "day after tomorrow", it displays that specific date? I want the relative dates on primarily for Today (tomorrow is a nice touch too, haha), but I do not like the "day after tomorrow" relative date. Any way to change that?

Thanks a bunch!
 
Any help with this uptime script would be appreciated since I have no knowledge of scripting. I found it either in this thread or on another site and it seemed to work well for a couple weeks...however yesterday I notice my screen said "UPTIME:" with no values after it.

When I run the script and the uptime is one day, it returns an error about not being able to convert a value to Unicode. I can't generate the error today (machine has now been up two days).

I think the problem is it's trying to decide to display the text "day" vs. "days" and bombing, but I can't figure out why.

Here it is:

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
 
Any help with this uptime script would be appreciated since I have no knowledge of scripting.

That looks like a complicated script for this. Here's my script for uptime.
Code:
echo "UP: \c"
uptime | cut -d ' ' -f 4-8 | sed -e s'/,//g;s/  / /g' | cut -d ' ' -f 1-3 | sed s'/,[ ]+users//'
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.