complete-copen-s a -d'Open APP, or open FILE(s), if supplied, with APP'-r-a"(mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemKind==Application' | sed -E 's/.+\/(.+)\.app/\1/g')"
complete-copen-s b -d'Bundle Identifier of APP to open, or to be used to open FILE'-x-a"(mdls (mdfind -onlyin /Applications -onlyin ~/Applications -onlyin /Developer/Applications 'kMDItemKind==Application') -name kMDItemCFBundleIdentifier | sed -E 's/kMDItemCFBundleIdentifier = \"(.+)\"/\1/g')"
complete-copen-s e -d'Open FILE(s) with /Applications/TextEdit'
complete-copen-s t -d'Open FILE(s) with default text editor from LaunchServices'
complete-copen-s f -d'Open STDIN/PIPE with default text editor. End input with C-d.'
complete-copen-s F -d'Don\'t restore previous application windows. Except Untitled documents.'
complete-copen-s W -d'Wait until APP has exited'
complete-copen-s R -d'Reveal FILE(s) in Finder'
complete-copen-s n -d'Open new instace of APP'
complete-copen-s g -d'Open in background'
complete-copen-s h -d'Finds and opens for a header whose name matches the given string. Better performance with full names i.e. NSView.h'-r
complete-copen-l args -d'Pass arguments to opened APP in the argv parameter to main()'-x