Skip to content

Commit

Permalink
Add PopClip extension
Browse files Browse the repository at this point in the history
  • Loading branch information
cdpath committed Jul 20, 2017
1 parent 26a1fd8 commit a910b14
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Download](https://github.com/cdpath/EuDic_tools/releases)

### Note for Eudic workflow
### Alfred workflow for EuDic

1\. Add Eudict to Alfred fallback results

Expand All @@ -16,6 +16,9 @@ delay 0.1
do shell script "open -b com.eusoft.eudic"
```

### PopClip Extension for EuDic

![install extension](./imgs/install_popclip_extension.png)

## Reference

Expand Down
Binary file added imgs/install_popclip_extension.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
60 changes: 60 additions & 0 deletions sources/popclip/Config.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Actions</key>
<array>
<dict>
<key>AppleScript File</key>
<string>eudic.applescript</string>
<key>Image File</key>
<string>eudic.png</string>
<key>Title</key>
<string>Search In Eudic</string>
</dict>
</array>
<key>Options</key>
<array>
<dict>
<key>Option Identifier</key>
<string>eudic_version</string>
<key>Option Label</key>
<dict>
<key>en</key>
<string>EuDic Version</string>
</dict>
<key>Option Type</key>
<string>multiple</string>
<key>Option Values</key>
<array>
<string>com.eusoft.freeeudic</string>
<string>com.eusoft.eudic</string>
</array>
<key>Option Description</key>
<string></string>
</dict>
</array>
<key>Extension Description</key>
<string>Look up the selected text in Eudic, the Chinese-English dictionary.</string>
<key>Extension Identifier</key>
<string>com.pilotmoon1.popclip.extension.eudic</string>
<key>Extension Name</key>
<string>Eudic</string>
<key>Apps</key>
<array>
<dict>
<key>Bundle Identifier</key>
<array>
<string>com.eusoft.freeeudic</string>
<string>com.eusoft.eudic</string>
</array>
<key>Check Installed</key>
<false/>
<key>Link</key>
<string>http://www.eudic.net/eudic/mac_dictionary.aspx</string>
<key>Name</key>
<string>Eudic</string>
</dict>
</array>
</dict>
</plist>
4 changes: 4 additions & 0 deletions sources/popclip/eudic.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tell application id "{popclip option eudic_version}"
activate
show dic with word "{popclip text}"
end tell

0 comments on commit a910b14

Please sign in to comment.