V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wellhome
V2EX  ›  程序员

有没有这样一种工具或者框架可以通过 GUI 来运行一些脚本

  •  
  •   wellhome · 2021-01-20 21:33:09 +08:00 · 1743 次点击
    这是一个创建于 1162 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我自己在 mac 上写了一些 shell, 但是我不想打开 terminal 来运行它们,我希望有一个 GUI, 我打开 GUI,点击我想运行的 shell,这个 shell 在后台就自动运行了, 然后把结果 pinint 到 GUI 上。
    第 1 条附言  ·  2021-01-20 23:00:51 +08:00
    就是懒的打字,所以想用鼠标点点。
    第 2 条附言  ·  2021-01-20 23:04:23 +08:00
    Platypus is a developer tool for the Mac OS X operating system. It creates native Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an application bundle along with a native executable binary that runs the script.
    13 条回复    2021-01-21 17:48:55 +08:00
    levelworm
        1
    levelworm  
       2021-01-20 21:46:27 +08:00 via Android
    感觉有点类似文件管理器。。。
    felixcode
        2
    felixcode  
       2021-01-20 21:51:32 +08:00
    你说的是 Windows 桌面上的 bat 文件。
    AmrtaShiva
        3
    AmrtaShiva  
       2021-01-20 22:18:08 +08:00 via iPhone
    Go 语言可以封装个简单的 ui
    shell 用 os/exec 包 运行之后把内容输出到文件再去读出来返回到 UI
    minamike
        4
    minamike  
       2021-01-20 22:30:11 +08:00
    Alfred
    keyboard maestro
    甚至自带的 Automator 都可以
    infun
        5
    infun  
       2021-01-20 22:34:08 +08:00
    Jupyter
    infun
        6
    infun  
       2021-01-20 22:35:44 +08:00
    utools 也可以, 提升效率的利器,推荐
    gppola666
        7
    gppola666  
       2021-01-20 22:57:16 +08:00
    打开文件夹,点击 shell 文件( shell 脚本最后加一行 read; 防止 shell 运行完直接退出),然后弹出一个 terminal 显示结果
    wellhome
        8
    wellhome  
    OP
       2021-01-20 23:00:04 +08:00 via iPhone
    我就是不想打字,想鼠标点一点。
    wellhome
        9
    wellhome  
    OP
       2021-01-20 23:04:45 +08:00 via iPhone
    找到个回答
    Platypus is a developer tool for the Mac OS X operating system. It creates native Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an application bundle along with a native executable binary that runs the script.
    supersu
        10
    supersu  
       2021-01-21 12:36:07 +08:00 via Android
    特地登陆一下账号,我知道一个巨牛逼的 python 框架,还亲身体验过把 python 脚本转化为 gui 应用,加我微信 Baksmali, 有偿告知和帮调代码
    zzazzx
        11
    zzazzx  
       2021-01-21 13:36:22 +08:00
    有偿告知和帮调试代码.....
    wellhome
        12
    wellhome  
    OP
       2021-01-21 14:03:22 +08:00 via iPhone
    @supersu 我谢谢你哦
    Areym
        13
    Areym  
       2021-01-21 17:48:55 +08:00
    utools 里面有个快捷命令插件
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3937 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:25 · PVG 18:25 · LAX 03:25 · JFK 06:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.