• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wellhome
V2EX  ›  程序员

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

  •  
  •   wellhome · Jan 20, 2021 · 2794 views
    This topic created in 1952 days ago, the information mentioned may be changed or developed.
    我自己在 mac 上写了一些 shell, 但是我不想打开 terminal 来运行它们,我希望有一个 GUI, 我打开 GUI,点击我想运行的 shell,这个 shell 在后台就自动运行了, 然后把结果 pinint 到 GUI 上。
    Supplement 1  ·  Jan 20, 2021
    就是懒的打字,所以想用鼠标点点。
    Supplement 2  ·  Jan 20, 2021
    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 replies    2021-01-21 17:48:55 +08:00
    levelworm
        1
    levelworm  
       Jan 20, 2021 via Android
    感觉有点类似文件管理器。。。
    felixcode
        2
    felixcode  
    PRO
       Jan 20, 2021
    你说的是 Windows 桌面上的 bat 文件。
    AmrtaShiva
        3
    AmrtaShiva  
       Jan 20, 2021 via iPhone
    Go 语言可以封装个简单的 ui
    shell 用 os/exec 包 运行之后把内容输出到文件再去读出来返回到 UI
    minamike
        4
    minamike  
       Jan 20, 2021
    Alfred
    keyboard maestro
    甚至自带的 Automator 都可以
    GlobalNPC
        5
    GlobalNPC  
       Jan 20, 2021
    Jupyter
    GlobalNPC
        6
    GlobalNPC  
       Jan 20, 2021
    utools 也可以, 提升效率的利器,推荐
    gppola666
        7
    gppola666  
       Jan 20, 2021
    打开文件夹,点击 shell 文件( shell 脚本最后加一行 read; 防止 shell 运行完直接退出),然后弹出一个 terminal 显示结果
    wellhome
        8
    wellhome  
    OP
       Jan 20, 2021 via iPhone
    我就是不想打字,想鼠标点一点。
    wellhome
        9
    wellhome  
    OP
       Jan 20, 2021 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  
       Jan 21, 2021 via Android
    特地登陆一下账号,我知道一个巨牛逼的 python 框架,还亲身体验过把 python 脚本转化为 gui 应用,加我微信 Baksmali, 有偿告知和帮调代码
    zzazzx
        11
    zzazzx  
       Jan 21, 2021
    有偿告知和帮调试代码.....
    wellhome
        12
    wellhome  
    OP
       Jan 21, 2021 via iPhone
    @supersu 我谢谢你哦
    Areym
        13
    Areym  
       Jan 21, 2021
    utools 里面有个快捷命令插件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5695 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.