Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Can not run successfully #3

Open
MartinYuan1995 opened this issue May 16, 2022 · 11 comments
Open

BUG: Can not run successfully #3

MartinYuan1995 opened this issue May 16, 2022 · 11 comments
Labels
bug Something isn't working

Comments

@MartinYuan1995
Copy link

Hi, I'm a freshman for this Alfred workflow named quicker. But when I downloaded this from Github and installed it on Alfred, there was nothing happened after typing Cmd+Opt+x. Later I found the reason that the shortcuts were not set automatically. after that, I tried again, and the list of the preset shortcuts for this App appeared without any choice.
image

@MartinYuan1995
Copy link
Author

您好,我下载了quicker插件之后,发现快捷键并不是自动设置好的。在我手动设置之后虽然可以弹出来窗口,但是不论在哪个APP中都不显示文档中的功能。就像上面的图片那样,什么也没有显示。

@Emrys365 Emrys365 added the bug Something isn't working label May 16, 2022
@Emrys365
Copy link
Owner

Could you provide more detailed information about your environment? For example:

  • your macOS version
  • python version
  • the changes you've made to the original workflow (if there is any)
  • and (most importantly) the error message you've got when the quicker workflow fails to run

    See the picture below for checking the error message:
    debug


你能提供更详细的一些信息吗?比如

  • 你的 macOS 系统版本
  • python 版本
  • 你对原始 workflow 所做的修改(如果有的话)
  • 以及(最重要的)当 quicker workflow 运行失败时的错误信息

    你可以通过上面的图片中展示的方式来查看错误信息。

@MartinYuan1995
Copy link
Author

感谢你的回答,我有两个版本的python,其中一个是电脑自带的Python 2.7.16;另一个是我自己安装的python 3.10.4
我的系统是15.6
我对原始workflow没有做任何修改,只设置了一个快捷键
Mac运行quicker时报错的信息如下:
image

@MartinYuan1995
Copy link
Author

同学你好,我已经解决了,把里面的python 换成了python3版本就可以了。谢谢,这个workflow真心赞!!!!

@MartinYuan1995
Copy link
Author

请问一下workflow里面的原始代码在哪里呢?我找了半天没有找到,谢谢。我想修改一下,比如word

@Emrys365
Copy link
Owner

同学你好,我已经解决了,把里面的python 换成了python3版本就可以了。谢谢,这个workflow真心赞!!!!

是的,这个 workflow 必须用 python3 来运行。

@Emrys365
Copy link
Owner

请问一下workflow里面的原始代码在哪里呢?我找了半天没有找到,谢谢。我想修改一下,比如word

想要修改源代码的话,需要在 workflow 上右键,选择「在访达中打开」,见下图:
src

这个 workflow 的工作流程比较复杂,你可能需要对照右侧的具体框图流程,逐一查看它所涉及的脚本,才能基本了解它的原理以及修改方式。

@MartinYuan1995
Copy link
Author

MartinYuan1995 commented May 16, 2022

r
这个workflow用起来实在太舒服了,大多都是使用的Applescript,请问一下,您有推荐的Applescrit教程嘛?我想根据自己的需要,修改一下,比如:word实现对选中文字格式的调整等。万分感谢

@Emrys365
Copy link
Owner

说实话我也不是特别熟悉 AppleScript,因为它本身是非常古老的,网络上能找到的相关教程也大多出现在十多年前。

我个人的经验是需要实现某一功能的时候,先去网上搜索相关关键字,如果能找到类似的问答,一般都会发现与之相关的 AppleScript 命令。
如果要推荐与 Microsoft Office 相关的参考资料的话,我建议你阅读 Excel 2004 AppleScript Reference, PowerPoint 2004 AppleScript Reference 以及 Word 2004 AppleScript Reference

最后你还可以阅读官方提供的 Mac 自动化文档:https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/index.html

@TtlyLynzie
Copy link

同学你好,我已经解决了,把里面的python 换成了python3版本就可以了。谢谢,这个workflow真心赞!!!!

hi,想请问下你是怎么把里面的python 换成了python3版本,感谢!

@MartinYuan1995
Copy link
Author

同学你好,我已经解决了,把里面的python 换成了python3版本就可以了。谢谢,这个workflow真心赞!!!!

hi,想请问下你是怎么把里面的python 换成了python3版本,感谢!

打开源码,将里面的feedback修改为python3,就可以了。最近,我发现这个代码有点老旧了,感觉现在不是很实用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants