forked from cyanzhong/docs.taio.app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic AppleScript to work with Hook
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Hook | ||
|
||
[Hook](https://hookproductivity.com/) 是一个效率应用,通过 Deep Link 来连接应用程序。 | ||
|
||
Taio 增加了基本的 [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) 支持,以便与 Hook 一起工作。 | ||
|
||
## 获取文档链接 | ||
|
||
要获得当前文档的链接,请使用如下所示的 AppleScript 脚本: | ||
|
||
``` | ||
tell application "Taio" | ||
get url of active document | ||
end tell | ||
``` | ||
|
||
## 获取文档名称 | ||
|
||
要获得当前文档的名称,请使用如下所示的 AppleScript 脚本: | ||
|
||
``` | ||
tell application "Taio" | ||
get name of active document | ||
end tell | ||
``` | ||
|
||
> 要了解更多关于 AppleScript 和 Hook 的信息,请参考上面提到的它们的官方文档。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Hook | ||
|
||
[Hook](https://hookproductivity.com/) is a productivity app that connects apps by leveraging deep links. | ||
|
||
Taio has added basic [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) support to work with Hook. | ||
|
||
## Get Document URL | ||
|
||
To get the URL of the active document, use AppleScript like below: | ||
|
||
``` | ||
tell application "Taio" | ||
get url of active document | ||
end tell | ||
``` | ||
|
||
## Get Document Name | ||
|
||
To get the name of the active document, use AppleScript like below: | ||
|
||
``` | ||
tell application "Taio" | ||
get name of active document | ||
end tell | ||
``` | ||
|
||
> To learn more about AppleScript and Hook, please refer to their official documentations mentioned above. |