ADDED QuickWho - Get Domain Info.workflow/Contents/Info.plist
Index: QuickWho - Get Domain Info.workflow/Contents/Info.plist
==================================================================
--- QuickWho - Get Domain Info.workflow/Contents/Info.plist
+++ QuickWho - Get Domain Info.workflow/Contents/Info.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ NSServices
+
+
+ NSMenuItem
+
+ default
+ QuickWho - Get Domain Info
+
+ NSMessage
+ runWorkflowAsService
+ NSSendTypes
+
+ public.utf8-plain-text
+
+
+
+
+
ADDED QuickWho - Get Domain Info.workflow/Contents/QuickLook/Thumbnail.png
Index: QuickWho - Get Domain Info.workflow/Contents/QuickLook/Thumbnail.png
==================================================================
--- QuickWho - Get Domain Info.workflow/Contents/QuickLook/Thumbnail.png
+++ QuickWho - Get Domain Info.workflow/Contents/QuickLook/Thumbnail.png
cannot compute difference between binary files
ADDED QuickWho - Get Domain Info.workflow/Contents/document.wflow
Index: QuickWho - Get Domain Info.workflow/Contents/document.wflow
==================================================================
--- QuickWho - Get Domain Info.workflow/Contents/document.wflow
+++ QuickWho - Get Domain Info.workflow/Contents/document.wflow
@@ -0,0 +1,197 @@
+
+
+
+
+ AMApplicationBuild
+ 444.4
+ AMApplicationVersion
+ 2.8
+ AMDocumentVersion
+ 2
+ actions
+
+
+ action
+
+ AMAccepts
+
+ Container
+ List
+ Optional
+
+ Types
+
+ com.apple.cocoa.string
+
+
+ AMActionVersion
+ 2.0.3
+ AMApplication
+
+ Automator
+
+ AMParameterProperties
+
+ COMMAND_STRING
+
+ CheckedForUserDefaultShell
+
+ inputMethod
+
+ shell
+
+ source
+
+
+ AMProvides
+
+ Container
+ List
+ Types
+
+ com.apple.cocoa.string
+
+
+ ActionBundlePath
+ /System/Library/Automator/Run Shell Script.action
+ ActionName
+ Run Shell Script
+ ActionParameters
+
+ COMMAND_STRING
+ domain=$1; osascript -e "tell app \"QuickWho\" to do script \"getDomain $domain\""
+ CheckedForUserDefaultShell
+
+ inputMethod
+ 1
+ shell
+ /bin/bash
+ source
+
+
+ BundleIdentifier
+ com.apple.RunShellScript
+ CFBundleVersion
+ 2.0.3
+ CanShowSelectedItemsWhenRun
+
+ CanShowWhenRun
+
+ Category
+
+ AMCategoryUtilities
+
+ Class Name
+ RunShellScriptAction
+ InputUUID
+ F8F6FD91-7B52-4292-B7A4-362537C13811
+ Keywords
+
+ Shell
+ Script
+ Command
+ Run
+ Unix
+
+ OutputUUID
+ 279AF479-66AB-4EE4-992C-0F7D947A9ABD
+ UUID
+ 3E73C973-ACA2-4384-B306-E7A9AC52DA99
+ UnlocalizedApplications
+
+ Automator
+
+ arguments
+
+ 0
+
+ default value
+ 0
+ name
+ inputMethod
+ required
+ 0
+ type
+ 0
+ uuid
+ 0
+
+ 1
+
+ default value
+
+ name
+ source
+ required
+ 0
+ type
+ 0
+ uuid
+ 1
+
+ 2
+
+ default value
+
+ name
+ CheckedForUserDefaultShell
+ required
+ 0
+ type
+ 0
+ uuid
+ 2
+
+ 3
+
+ default value
+
+ name
+ COMMAND_STRING
+ required
+ 0
+ type
+ 0
+ uuid
+ 3
+
+ 4
+
+ default value
+ /bin/sh
+ name
+ shell
+ required
+ 0
+ type
+ 0
+ uuid
+ 4
+
+
+ isViewVisible
+
+ location
+ 309.000000:253.000000
+ nibPath
+ /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib
+
+ isViewVisible
+
+
+
+ connectors
+
+ workflowMetaData
+
+ serviceInputTypeIdentifier
+ com.apple.Automator.text
+ serviceOutputTypeIdentifier
+ com.apple.Automator.nothing
+ serviceProcessesInput
+ 0
+ workflowTypeIdentifier
+ com.apple.Automator.servicesMenu
+
+
+
Index: QuickWho.py
==================================================================
--- QuickWho.py
+++ QuickWho.py
cannot compute difference between binary files
Index: QuickWho.sdef
==================================================================
--- QuickWho.sdef
+++ QuickWho.sdef
Index: buildapp
==================================================================
--- buildapp
+++ buildapp
@@ -26,11 +26,11 @@
CFBundleDevelopmentRegion
English
CFBundleDisplayName
QuickWho
CFBundleExecutable
- _quickWho
+ _quickwho
CFBundleGetInfoString
QuickWho $1
CFBundleIconFile
QuickWho.icns
CFBundleIdentifier
@@ -68,35 +68,17 @@
Copyright (c) 2018 WordTech Communications LLC
NSMainNibFile
MainMenu
NSPrincipalClass
NSApplication
- NSServices
-
-
- NSMenuItem
-
- default
- QuickWho: Display Domain Information
-
- NSMessage
- provideService
- NSPortName
- QuickWho
- NSSendTypes
-
- NSStringPboardType
-
-
-
OSAScriptingDefinition
- QuickWho.sdef
+ Wish.sdef
EOT
-gcc main.m -o _quickwho -framework Carbon -framework Cocoa
+gcc main.m -o _quickwho -framework Carbon -framework Cocoa -framework CoreFoundation
mkdir dist
mkdir dist/QuickWho.app
mkdir dist/QuickWho.app/Contents
mkdir dist/QuickWho.app/Contents/MacOS
@@ -105,13 +87,14 @@
cp Info.plist dist/QuickWho.app/Contents/Info.plist
cp _quickwho dist/QuickWho.app/Contents/MacOS/_quickwho
cp launcher dist/QuickWho.app/Contents/Resources/launcher
cp QuickWho.icns dist/QuickWho.app/Contents/Resources/QuickWho.icns
-cp QuickWho.sdef dist/QuickWho.app/Contents/Resources/QuickWho.sdef
+cp Wish.sdef dist/QuickWho.app/Contents/Resources/Wish.sdef
cp QuickWho.py dist/QuickWho.app/Contents/Resources/QuickWho.py
cp ToolTip.py dist/QuickWho.app/Contents/Resources/ToolTip.py
+cp -R -f "QuickWho - Get Domain Info.workflow" dist/QuickWho.app/Contents/Resources/"QuickWho - Get Domain Info.workflow"
#copy the frameworks
cp -R -f /Library/Frameworks/Tcl.framework dist/QuickWho.app/Contents/Frameworks/Tcl.framework
cp -R -f /Library/Frameworks/Tk.framework dist/QuickWho.app/Contents/Frameworks/Tk.framework
cp -R -f /Library/Frameworks/Python.framework dist/QuickWho.app/Contents/Frameworks/Python.framework
Index: scriptlibs/machelp/help.txt
==================================================================
--- scriptlibs/machelp/help.txt
+++ scriptlibs/machelp/help.txt
@@ -64,11 +64,11 @@
Then, run the script in Script Editor or as part of a larger AppleScript package.
As an example of integrating a QuickWho AppleScript with other applications, here is another sample script:
tell application "QuickWho"
- set thetext to (get domain "apple.com")
+ set thetext to (do script "getDomain \"apple.com\"")
tell application "TextEdit"
make new document with properties {text:thetext}
end tell
end tell