├── .gitignore ├── LICENSE ├── README.md ├── sources ├── alfred │ ├── E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8.png │ ├── icon.png │ └── info.plist └── popclip │ ├── Config.plist │ ├── eudic.applescript │ └── eudic.png └── workflows └── Eudic.alfredworkflow /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | 27 | # PyInstaller 28 | # Usually these files are written by a python script from a template 29 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 30 | *.manifest 31 | *.spec 32 | 33 | # Installer logs 34 | pip-log.txt 35 | pip-delete-this-directory.txt 36 | 37 | # Unit test / coverage reports 38 | htmlcov/ 39 | .tox/ 40 | .coverage 41 | .coverage.* 42 | .cache 43 | nosetests.xml 44 | coverage.xml 45 | *,cover 46 | .hypothesis/ 47 | 48 | # Translations 49 | *.mo 50 | *.pot 51 | 52 | # Django stuff: 53 | *.log 54 | 55 | # Sphinx documentation 56 | docs/_build/ 57 | 58 | # PyBuilder 59 | target/ 60 | 61 | #Ipython Notebook 62 | .ipynb_checkpoints 63 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 cdpath 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## EuDic tools for Mac 2 | 3 | 4 | ### Note 5 | [eudic_tools wiki](https://github.com/cdpath/eudic_tools/wiki) 6 | 7 | 8 | ### Download 9 | [releases](https://github.com/cdpath/EuDic_tools/releases) 10 | 11 | 12 | ### Reference 13 | 14 | - [PopClip-Extensions/Eudic.applescript](https://github.com/pilotmoon/PopClip-Extensions/blob/43c4baac8692feb6ce596483d79bcce0b20cfbad/source/Eudic_Free/Eudic.applescript) 15 | - [superkam/Alfred2_EuDic_Search](https://github.com/superkam/Alfred2_EuDic_Search) 16 | - [Can application id be set by a variable?](http://macscripter.net/viewtopic.php?id=40827) 17 | - [Launch Scripts from Webpage Links](https://www.macosxautomation.com/applescript/linktrigger/) 18 | 19 | -------------------------------------------------------------------------------- /sources/alfred/E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdpath/eudic_tools/5197db6ca9d9de8e23d4a95ebcd6c5bb8683c9ee/sources/alfred/E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8.png -------------------------------------------------------------------------------- /sources/alfred/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdpath/eudic_tools/5197db6ca9d9de8e23d4a95ebcd6c5bb8683c9ee/sources/alfred/icon.png -------------------------------------------------------------------------------- /sources/alfred/info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.cdpath.alfred 7 | category 8 | Tools 9 | connections 10 | 11 | 56982BE6-7409-4E95-883F-45E4B4704DEF 12 | 13 | 14 | destinationuid 15 | E05722E2-9DF4-46A1-A1A3-D54BFA0BBA66 16 | modifiers 17 | 0 18 | modifiersubtext 19 | 20 | vitoclose 21 | 22 | 23 | 24 | E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8 25 | 26 | 27 | destinationuid 28 | E05722E2-9DF4-46A1-A1A3-D54BFA0BBA66 29 | modifiers 30 | 0 31 | modifiersubtext 32 | 33 | vitoclose 34 | 35 | 36 | 37 | 38 | createdby 39 | cdpath 40 | description 41 | Define a word 42 | disabled 43 | 44 | name 45 | Eudic 46 | objects 47 | 48 | 49 | config 50 | 51 | argumenttype 52 | 0 53 | keyword 54 | d 55 | subtext 56 | Search in Eudic 57 | text 58 | Eudic 59 | withspace 60 | 61 | 62 | type 63 | alfred.workflow.input.keyword 64 | uid 65 | 56982BE6-7409-4E95-883F-45E4B4704DEF 66 | version 67 | 1 68 | 69 | 70 | config 71 | 72 | text 73 | Eudic 74 | 75 | type 76 | alfred.workflow.trigger.fallback 77 | uid 78 | E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8 79 | version 80 | 1 81 | 82 | 83 | config 84 | 85 | concurrently 86 | 87 | escaping 88 | 0 89 | script 90 | if [ "$eudic_version" == "pro" ];then 91 | open -b 'com.eusoft.eudic' 92 | open -b 'com.eusoft.eudic' 93 | osascript <<EOD 94 | tell application id "com.eusoft.eudic" 95 | activate 96 | show dic with word "{query}" 97 | end tell 98 | EOD 99 | elif [ "$eudic_version" == "lite" ];then 100 | open -b 'com.eusoft.freeeudic' 101 | open -b 'com.eusoft.freeeudic' 102 | osascript <<EOD 103 | tell application id "com.eusoft.freeeudic" 104 | activate 105 | show dic with word "{query}" 106 | end tell 107 | EOD 108 | fi 109 | scriptargtype 110 | 0 111 | scriptfile 112 | 113 | type 114 | 0 115 | 116 | type 117 | alfred.workflow.action.script 118 | uid 119 | E05722E2-9DF4-46A1-A1A3-D54BFA0BBA66 120 | version 121 | 2 122 | 123 | 124 | readme 125 | Use AppleScript to search in Eudict 126 | 127 | For Eudic Pro set eudic_version to 'pro', otherwise 'lite' 128 | uidata 129 | 130 | 56982BE6-7409-4E95-883F-45E4B4704DEF 131 | 132 | xpos 133 | 90 134 | ypos 135 | 10 136 | 137 | E05722E2-9DF4-46A1-A1A3-D54BFA0BBA66 138 | 139 | xpos 140 | 410 141 | ypos 142 | 140 143 | 144 | E8FCCB49-6B78-47F6-8BB3-4133DA1F9DF8 145 | 146 | xpos 147 | 90 148 | ypos 149 | 140 150 | 151 | 152 | variables 153 | 154 | eudic_version 155 | pro 156 | 157 | version 158 | 1.4 159 | webaddress 160 | https://github.com/cdpath/eudic_tools 161 | 162 | 163 | -------------------------------------------------------------------------------- /sources/popclip/Config.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Actions 6 | 7 | 8 | AppleScript File 9 | eudic.applescript 10 | Image File 11 | eudic.png 12 | Title 13 | Search In Eudic 14 | 15 | 16 | Options 17 | 18 | 19 | Option Identifier 20 | eudic_version 21 | Option Label 22 | 23 | en 24 | EuDic Version 25 | 26 | Option Type 27 | multiple 28 | Option Values 29 | 30 | com.eusoft.freeeudic 31 | com.eusoft.eudic 32 | 33 | Option Value Labels 34 | 35 | Eudic 36 | Eudic Pro 37 | 38 | Option Description 39 | Choose the correct Eudic Version 40 | 41 | 42 | Extension Description 43 | Look up the selected text in Eudic, the Chinese-English dictionary. 44 | Extension Identifier 45 | com.pilotmoon1.popclip.extension.eudic 46 | Extension Name 47 | Eudic 48 | Apps 49 | 50 | 51 | Bundle Identifiers 52 | 53 | com.eusoft.freeeudic 54 | com.eusoft.eudic 55 | 56 | Check Installed 57 | 58 | Link 59 | http://www.eudic.net/eudic/mac_dictionary.aspx 60 | Name 61 | Eudic 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /sources/popclip/eudic.applescript: -------------------------------------------------------------------------------- 1 | tell application id "{popclip option eudic_version}" 2 | activate 3 | show dic with word "{popclip text}" 4 | end tell -------------------------------------------------------------------------------- /sources/popclip/eudic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdpath/eudic_tools/5197db6ca9d9de8e23d4a95ebcd6c5bb8683c9ee/sources/popclip/eudic.png -------------------------------------------------------------------------------- /workflows/Eudic.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdpath/eudic_tools/5197db6ca9d9de8e23d4a95ebcd6c5bb8683c9ee/workflows/Eudic.alfredworkflow --------------------------------------------------------------------------------