Geektool Scripts For Word
- Word templates also host a massive selection of paired resumes and cover letters, which were professionally created to help you score that perfect job. Microsoft Word templates are ready to use if you're short on time and just need a fillable outline for a flyer, calendar, or brochure.
- Updated script to Version 0.8, added -e option to show an example GeekTool command pulling full paths for both python2.7 and your script location. (This should help if you don’t know much about scripting etc.) Note: This was a quick hack while I’m out-of-town, I will look into better ways of performing this once I’m home.
I have long had a GeekTool item on my desktop that tells me what network interfaces were active and what IPs I have on them, as well as my external IP address. For a long time this relied on ifconfig and manually updating the interface numbers (en0, en1, etc…). Now that I have a Retina MBP, without an ethernet port, I have a lot of possible interfaces with the various adapters. Managing the script manually was getting annoying. So I rewrote it to use networksetup and a while loop. The script is below:
Office Scripts documentation. Use Office Scripts in Excel on the web to automate your common tasks. Explore the following articles to learn how to create and edit Office Scripts and get started automating today. Aug 26, 2011 GeekTool is a utility that allows you to embed objects and information directly onto your Mac's desktop. It installs as a preference pane in the System Preferences, and from there you can open use.
The first line gets a list of all network services as defined in the current location in the Network panel of System Preferences, as well as a few other options (bluetooth, usb attached MiFis, etc). Then for each one of those, we try to look up an IP address. If there isn’t an IP, nothing is displayed, but if there is, then the service name and IP are output.
If the Wi-Fi service has an IP address, then the network name and channel that the system is connected to is found and output.
Finally, we use a external website to lookup the public IP that our outside connection is from.
[Edit] I added some checking so that if there is no connection, it will display that. Also it will now display if there is no external connection [/Edit]
Currently, this is all for IPv4 addresses, and I explicitly exclude any IPv6 addresses that might be assigned, but that could be modified by changing the grep portions of the script.
Then in GeekTool I setup a Shell Script item and point it to my script. That looks like this:
The output then is positioned in the lower left hand corner of my screen and looks like:
The next step is to use this as an excuse to try out Übersicht.
Geektool Scripts For Word Download
Click here to return to the 'iTunes, the menu bar, unicode, and GeekTool' hint |
GeekTool can do lots of other cool stuff as well.
On my desktop I have 'ps xm -O %mem' to display all running processes and which are hogging the most memory (makes it easy to see what's leaking), and below that, ifconfig en1 to see if I have an IP address (Since my school's wireless network has a tendency to fail).
I also used a friends' script that loads random girls from HotOrNot and called it from GeekTool. Every 10 seconds, a new girl :)
I did something similar with GeekTool, but in a small window at the bottom of the screen, and with more infos (track, time, Album, Equalization, Genre). Here's the script:
As you can see the scripts checks if iTunes is running. If not, it does not execute the applescript as this would launch iTunes, but displays an informative message.
I call this shell script (I named it 'whichTune') from GeekTool, using a small 3-lined translucent window with a really small font size (but readable).
The only drawback is the idle period between calls: as iTunes does not send events when a track changes, I must decide the frequency of checks; I opted for 15 seconds to reduce waste of cycles, but it's all your choice.
[robg adds:IMPORTANT NOTE ... I wrapped the above script for a much narrower display. When entering it, remove the line breaks on the 'if' line until the line before 'else.' Replace each line break with a single space.]
Once you get a cinema display (1600x1050 or higher), you'll have an incredible amount of wasted menu bar space. I also use the space to display the name of the senders of incoming messages.
... do you know Tigger? <http://www.furrysoft.de/?page=tigger>
While I'm the author, and therefore probably biased, I find that a much nicer solution. :)
Andreas
I gave Tigger a spin. Once I got it working, it was a slick little app. I really like the plugin ability. However, I had a few comments. First, it took me several tries to get it to even load without locking up. After the first few tries, I thought It might need a reboot. I rebooted and it still didn't work. Then, all of a sudden, about the 5th try, it just fired right up and worked. Go figure. My next problem with Tigger was the inability to remove it from the dock. There needs to be some way to have Tigger start up at logon, and not take up space in my dock. The last problem however was a killer. Tigger is a resource hog. On my first gen 12' PB it was taking up on average 12% to 19% CPU utilization. That's just unaceptable. I've bookmarked your site, and I'll check back later. If you can fix those few problems, I'll buy a copy. -- Ahbe
First, it took me several tries to get it to even load without locking up. After the first few tries, I thought It might need a reboot. I rebooted and it still didn't work. Then, all of a sudden, about the 5th try, it just fired right up and worked.That's news to me. Something in the console.log?
My next problem with Tigger was the inability to remove it from the dock. There needs to be some way to have Tigger start up at logon, and not take up space in my dock.I'm working on this. Expect a new version soon.
Tigger is a resource hog. On my first gen 12' PB it was taking up on average 12% to 19% CPU utilization. That's just unaceptable.Well, I'm afraid, that's not gonna change soon. It's quite expensive to redraw the ticker view several dozen times a second. OpenGL might help, but I'm not familiar enough with it yet.
Andreas
I like Tigger, but I was looking for a solution without a 'ticker.' I just want a static display, updated every 20 seconds or so. In general, I don't like to see things moving on my screen unnecessarily. The CPU usage is also a concern---I generally need 100% of both my CPUs.
My suggestion would be to provide an option for an 'infrequent refresh' on Tigger.
I just want a static display, updated every 20 seconds or so.You are not the first one to ask. :)
Tigger is really meant as a kind of system service to display various bits of information. But I will think about a solution that reduces movement to a minimum.
The CPU usage is also a concern---I generally need 100% of both my CPUs.I don't think I can reduce it much while keeping the scrolling smooth. Try to experiment with the settings. In case a future version would reduce scrolling, that would reduce cpu time too, of course.
What I can do now is add a renice option. That way Tigger should not take cpu time when other processes need it.
Andreas
-Elrac
There's always 'Synergy'
http://synergy.wincent.com
Has a floater with album info and a control set in the menubar. Really nicely done and no scipting required.
Here's my version of the script, which works basically the same way, but which contains more track information, allows me to easily add or remove that information from the display (by editing the second last line of the script), and adds a bit of punctuation to separate the pieces of information. The code that formats the rating as asterisks could undoubtably be improved, but I didn't think it was really worth the effort of learning the right AppleScript syntax. :) Note that this script still has the problem of starting iTunes if it's not already running, so you'll need to wrap it in shell script as reported in other comments, if you don't normally have iTunes running all the time (alternatively, in GeekTool, put the script in a particular group and only use that group when you're playing music).
If you change this line:
if [[ -n '`ps -x | grep /Applications/${app}.app | grep -v grep`' ]]; then
to this:
if [[ -n '`ps -x | grep -i /Applications/.*${app}.app | grep -v grep`' ]]; then
then you don't need to type the application name with the correct upper- and lower-case letters (the -i switch to grep does a case-insensitive search), and you can specify applications that exist in subdirectories under the Applications directory (.* handles that). An unfortunate side effect of the latter change is that if you have applications called (for example) MyBooks.app and Books.app (i.e., two or more applications ending with the same word), then entering 'Books' as the application name might launch the wrong application. This isn't a problem for me (at the moment!) but bear that in mind if you add '.*' to your code.
I did make a few changes the most important of which was to change the percent reading to a rudimentary progress bar. Just easier for me to visualize. Here is the code I subsittuted (also change the stars to take less room by subbing 1*, 2*, etc.):
Thanks again for the original script!
This applescript is an obvious rip-off of the original poster's script, with none of the improvements of the posters above, but used instead of the original authors applescript, it lists the previous song, current song, and the next 4 songs (each with the name of the artist).
[code]
tell application 'iTunes'
set foo5 to name of track 5 of playlist 2
set foo5a to artist of track 5 of playlist 2
set foo6 to name of track 6 of playlist 2
set foo6a to artist of track 6 of playlist 2
set foo7 to name of track 7 of playlist 2
set foo7a to artist of track 7 of playlist 2
set foo8 to name of track 8 of playlist 2
set foo8a to artist of track 8 of playlist 2
set foo9 to name of track 9 of playlist 2
set foo9a to artist of track 9 of playlist 2
set foo10 to name of track 10 of playlist 2
set foo10a to artist of track 10 of playlist 2
set foo7 to foo5 & ' by ' & foo5a & '
' & foo6 & ' by ' & foo6a & '
' & foo7 & ' by ' & foo7a & '
' & foo8 & ' by ' & foo8a & '
' & foo9 & ' by ' & foo9a & '
' & foo10 & ' by ' & foo10a
end tell
[/code]
By the way, in writing this, I found out that AppleScript, like Perl considers 'n' to be a command to start a new line.
I don't know why the code tags didn't work...
This uses the 2nd playlist, obviously, which for me is the 'Party Shuffle'.
It displays a little window with the currently playing track in it. But you can also make the window transparent and move it in front of the menubar. So it does exactly what you wanted.
It also announces a new track by speech.
And the best: it's free!
Here is my adaptation building on the above outstanding work. It results in this output:
iTunes: Song - Artist (Album) | rating | progress%
if there is no album then that field is dropped
if there is no rating then that field too is dropped
it will cause iTunes to open at login which I think is great!
tell application 'iTunes'
set trackname to name of current track
set artistname to artist of current track
set albumname to album of current track
if albumname is null then
set albumshow to ' '
else if albumname is ' then
set albumshow to ' '
else
set albumshow to ' ( ' & albumname & ' ) '
end if
set trackduration to duration of current track
set trackposition to player position
set elapsed to round (trackposition / trackduration * 100)
set myRating to round ((rating of current track) / 20)
if myRating is 1 then
set myRating to '| * '
else if myRating is 2 then
set myRating to '| ** '
else if myRating is 3 then
set myRating to '| *** '
else if myRating is 4 then
set myRating to '| **** '
else if myRating is 5 then
set myRating to '| ***** '
else
set myRating to '
end if
set myRating to myRating
set output to 'iTunes: ' & trackname & ' - ' & artistname & albumshow & myRating & '| ' & elapsed & '%'
end tell
---
These go to eleven.
Geektool Scripts For Word Processor
anybody find a way to get geektool to show unicode? doesn't work for russian or japanese. any hints? (p.s. has geektool development stalled? any alternatives at some point?)