3/23/2023 0 Comments Geektool not starting at![]() ![]() The Applescript below checks the inbox to see if there are any unread messages, it then gets the sender and the subject of each message and formats them into a list. The ability to access applescripts allows you easily put more content on your desktop, I like to keep track of incoming emails and whilst the dock icon shows if any unread messages are present it takes a little time to see who they are from. You can compare the ouput by selecting the "Hide Output" option. This should also bring up a list of today's events on the desktop but has the advantage you can add a header "Uncompleted tasks". Now create another new entry, select "shell" as before then type "osascript " followed the full path to the applescript (an easy way to get the full posix path is to simply drop the script onto a "Terminal" window, you can then copy and paste the path). I have a "scripts" folder in which I have a "for_geektool" sub-folder set the_tasks to "Uncompleted tasks" & return set shell_script to "/usr/local/bin/icalbuddy uncompletedTasks" set the_tasks to the_tasks & ( do shell script shell_script ) the_tasks Create the following Applescript and save it. An alternative is to create an Applescript and to use the osascript command to access it. Whilst this is the easiest option it does limit the options for customisation. You may have to move the list to avoid overlap with the calendar and adjust the refresh rate to a more appropriate number of seconds. ![]() Now create another new entry, select "shell" as before then type "/usr/local/bin/icalbuddy uncompletedTasks" into the command box, this should bring up a list of today's events on the desktop. To test if everything is installed properly, try typing in "icalbuddy eventsToday", which should bring up a list of today's events. ![]() Now drag the iCalBuddy folder onto the Terminal window and hit Enter. Open up Terminal (located in Applications/Utilities) and type cd followed by a space. The installation is a little bit complicated. Here installation instructions from Macosxtips: events and tasks/todos) from the OS X calendar database (the same one iCal uses). While this is quite interesting it you can obviously use a range of shellscripts to create content, one mentioned in the tip above uses icalbuddy a command-line utility that can be used to get lists of items (i.e. You can modify the font type colour etc to give better contrast with your desktop. Since this won't need updating that often set the refresh to 5000. Now type cal in the box and in a few seconds the calendar for the current month should appear on your desktop at the top left corner. To create a new entry click the button at the bottom left and then select "Shell" from the dropdown menu. You can now access it by opening System Preferences and looking in the bottom row of icons, double click it. To install GeekTool go to the website, download it and double click to install the preference pane. In this tutorial I'll use a couple of simple commands to create desktop content, and then link to Applescripts to create more complex content. I first became aware of Geektool when read this tip on Macosxtips and it would certainly be worth looking at to get an idea of what it can be used for. The information can be derived from a shell script or using osascript it is possible to call applescripts (or any other OSA language scripts). It lets you display various types of information directly on you desktop. GeekTool is a Preference Pane (System Preferences module) for Mac OS X. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |