Sunday, July 15, 2007

Applescript to change Network Location

I have the need to change my network location from time to time. Opening the preference pane and making the change is tedious. Below is the applescript that I invoke from Quicksilver to change this. I'm still not sold on the language but being able to script the UI is fantastic.

tell application "System Events"
tell application "System Preferences"
reveal anchor "Network" of pane id ""
end tell

tell window "Network" of process "System Preferences"
tell pop up button 1
pick menu item "Home" of menu 1
end tell
delay 1
click button "Apply Now"
end tell

quit application "System Preferences"
end tell

Saturday, July 14, 2007

QSEclipse 0.9.2 Released

I released version 0.9.2 of QSEclipse today. It doesn't contain functionality above what 0.9.2a1 contained, I just dropped the alpha status. The release notes are pasted below.
[2007-07-14: Revision 0.9.2]

[FIXED] Provide default excludes for scanning for workspaces

[FIXED] Workspace entry cannot be set as default

QSEclipse 0.9.2

Monday, July 2, 2007


I created a small Spotlight metadata importer that provides metadata for folders that represent Eclipse workspaces. The project is mdeclipse and version 0.9 has been uploaded to google code. It's a simple project but I'll be integrating it into qseclipse so that I don't have to search manually which will remove most configuration from the plug-in. It's a separate project in case anyone would like to use it outside of qseclipse for Smart Folders, programmatic searches using 'mdfind', etc.

MDEclipse Home

Sunday, July 1, 2007

Version 0.9.2a1 Released

I uploaded version 0.9.2a1 of qseclipse over the weekend. I reworked the indexing of workspaces so that hopefully, the default algorithm is good enough for most if not all use cases. This is a result of issue 14 which added excludes to the algorithm. It starts at "~" but excludes the following:

  • hidden folders

  • ~/Applications

  • ~/Desktop

  • ~/Documents

  • ~/Library

  • ~/Movies

  • ~/Music

  • ~/Pictures

  • ~/Public

  • ~/Sites

This a stop gap until I get the Spotlight integration working. Once that occurs I doubt there will be a search algorithm at all.

QSEclipse 0.9.2a1

Sunday, June 24, 2007

QSObject identifier and indexing

When contributing to the Quicksilver catalog you must set the identifier for the QSObject if you want it to maintain the default value and ranking information. This makes sense but there was an issue in 0.9.1 of qseclipse because I wasn't doing this. Apparently the equality algorithm takes this into consideration when determining object equality. Version 0.9.2a contains this fix. Workspace and workspace log catalog entries now retain this information across indexing operations.

Version 0.9.2a Released

I fixed bug 13 which was prohibiting Quicksilver from recognizing catalog entries as being equivalent across indexing operations. It was a simple fix but it warranted a release as it now behaves as expected in regards to setting the default entry for text and maintaining rank information. 0.9.2a has been uploaded. Installation instructions can be found on the wiki.