Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shell script

  1. Buadhai

    macOS Launchd runs old scripts, but won't run new scripts

    I'm sure this is something simple. Be that as it may, I can't figure it out. I've been writing simple shell scripts for years that I run via launchd plist files created with Lingon. Generally that works fine unless I do something stupid which is not all that rare. However, after installing...
  2. Buadhai

    macOS Run A Shell Script via Launchd When Laptop Lid is Closed

    I'd like to run a shell script every night using launchd when the laptop (M1 MBA) lid is closed. I can ssh in to the machine when the lid is closed and run the script from the command line. But running via launchd doesn't seem to work.
  3. J

    Widgets... would love to see a project to replace 20 year old GeekTool

    I have been using GeekTool for years - so useful to have a HUD of information sitting on the desktop. The fact that it still runs (albeit with Rosetta) on macOS is a testament to the creator. I have not seen much on how to use WidgetKit to create our own widgets for bash/zsh shell scripts and...
  4. kimaldis

    macOS Applescript: do shell script fails when using foundation framework

    If I add use framework "Foundation" to an applescript, do shell script no longer works. I get an error "Syntax Error, Expected end of line, etc. but found identifier." with 'shell' highlighted in the script. If I remove the 'use framework' line or the 'use framework' line, the script works...