Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Search my gists ;p
from Foundation import NSWorkspace, NSURL
import urllib
def show_gists():
def search_gists(search_string):
NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_('' % search_string))

This comment has been minimized.

Copy link

@clburlison clburlison commented Feb 2, 2018

The imports are wrong. Should be:

from AppKit import 
from Foundation import NSURL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment