Skip to content

Commit

Permalink
Support URL Scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
cdpath committed Apr 18, 2018
1 parent cf77616 commit 44551f7
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 15 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
## EuDic tools for Mac

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

### Alfred workflow for EuDic
### Note
[eudic_tools wiki](https://github.com/cdpath/eudic_tools/wiki)

1\. Add Eudict to Alfred fallback results

![setup fallback results](./imgs/setup_fallback_results.png)
### Download
[releases](https://github.com/cdpath/EuDic_tools/releases)

2\. I have to use the following code to make sure Eudict is opened. It may be a bug.

```AppleScript
do shell script "open -b com.eusoft.eudic"
delay 0.1
do shell script "open -b com.eusoft.eudic"
```

### PopClip Extension for EuDic

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

## Reference

- [PopClip-Extensions/Eudic.applescript](https://github.com/pilotmoon/PopClip-Extensions/blob/43c4baac8692feb6ce596483d79bcce0b20cfbad/source/Eudic_Free/Eudic.applescript)
- [superkam/Alfred2_EuDic_Search](https://github.com/superkam/Alfred2_EuDic_Search)
- [Can application id be set by a variable?](http://macscripter.net/viewtopic.php?id=40827)
- [Launch Scripts from Webpage Links](https://www.macosxautomation.com/applescript/linktrigger/)

Binary file removed imgs/install_popclip_extension.png
Binary file not shown.
Binary file removed imgs/setup_fallback_results.png
Binary file not shown.
63 changes: 63 additions & 0 deletions sources/eudic_helper/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.apple.ScriptEditor.id.eudic</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>eudic</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>eudic_helper</string>
<key>CFBundleURLSchemes</key>
<array>
<string>eudic</string>
</array>
</dict>
</array>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>WindowState</key>
<dict>
<key>bundleDividerCollapsed</key>
<true/>
<key>bundlePositionOfDivider</key>
<real>0.0</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>2</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>289</real>
<key>savedFrame</key>
<string>520 62 700 672 0 0 1440 900 </string>
<key>selectedTab</key>
<string>result</string>
</dict>
</dict>
</plist>
Binary file added sources/eudic_helper/MacOS/applet
Binary file not shown.
1 change: 1 addition & 0 deletions sources/eudic_helper/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPLaplt
Binary file added sources/eudic_helper/Resources/Scripts/main.scpt
Binary file not shown.
Binary file added sources/eudic_helper/Resources/applet.icns
Binary file not shown.
Binary file added sources/eudic_helper/Resources/applet.rsrc
Binary file not shown.
5 changes: 5 additions & 0 deletions sources/eudic_helper/Resources/description.rtfd/TXT.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf400
{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
}

0 comments on commit 44551f7

Please sign in to comment.