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

script

  1. A

    Downloads sort by date

    I remember a long time ago, I could tell Safari to make a folder for every day of download. This disappeared a long time ago until now..! I was tired the pile up in the download folder and because I cant decide always, do I want to delete or move this download, I wanted them to be sorted by...
  2. I

    Until read from tty, or readkey, etc..

    I have a lazy man's timer, works fine but I need to restart it. I've done extensive programming on other UNIX/LINUX OS's but hardly any on Mac even though I've been using Macs for years. Normally I wouldn't mind doing extensive research and teaching myself but I don't have time, working on...
  3. J

    Deleting user files/signing out of programs on every logout?

    Hi, I am trying to set up Macs for my school on Monterey 12.6 and ran into loads of crashing issues regarding Google Chrome and Garageband on Guest (but never on local), plus couldn't get a launch script on Guest to accept default browser. Is there a way I can create a local account...
  4. D

    macOS Restoring Bash and Python 2.7 on Monterey a good idea?

    Many years ago I taught myself some Bash and Python and wrote a couple of scripts which I still use all the time for work. So far this hasn't been a problem as I was still using Sierra on my old Mac. But now I just got a new Mac Studio running Monterey, which seems to have ditched both Bash and...
  5. KingBuzzard

    macOS AppleScript For Multiple Safari Tabs And Mouse Click?

    Hey all, Complete noob to AppleScript here with a rather complex one: I would like automate a script that can do the following: 1. After launching, waits for 61 minutes without doing anything, then: 2. Opens Safari with 16 tabs (and 16 separate URLS) 3. Clicks a “Roll!” button on each of the...
  6. M

    macOS shell script check. A better way to execute the if statement and check for a condition

    I need to write a very simple shell script that will check if the system is configured to enforce multi-factor authentication. To verify that the system is configured to enforce multi-factor authentication, run the following commands: If the results do not show "enforceSmartCard=1", this is a...
  7. S

    Geektool RSS feed script?

    Hello. I've searched high and low on the internet to find an RSS feed script that can help me show the new shows that are being aired via the followshows.com website. I've found a bunch, but none of them work the way I would like them to. What I'm looking for is a script that will show the...
  8. jent

    Script to download website on a regular basis?

    I was hoping someone could guide me in creating a tiny bit of code (AppleScript, cron job, I'm not really sure) that would run automatically on the first of each month and download the contents of a few websites for archival purposes. It wouldn't need to go any deeper than just having an...
  9. F

    Forklift 3 Tools syntax

    Hello, In Forklift there is an option Tools, which allows to make quick actions. But i don't really get how to create one. Fir example a simple one: cp $SOURCE_SELECTION_NAMES $TARGET_PATH /bin/bash cp $SOURCE_SELECTION_NAMES $TARGET_PATH /bin/bash/cp $SOURCE_SELECTION_NAMES $TARGET_PATH i...
  10. stlow

    Apple Script to automatically force quit process?

    I hope someone can help me out with this. I have set up my photo library on an external drive that syncs to iCloud when I open the Photos app. Often times it doesn't start syncing by itself, so I found the very helpful tip to close Photos, quit certain processes in the Activity Monitor (see...
  11. M

    Sleep/shutdown/mute timer for Mac: iWannaSleep 2.0

    Some of you may still remember my little sleep/mute/shutdown/... timer for Mac "iWannaSleep", which I wrote and released topping 16 years ago. Much to my surprise, it was included on many Shareware-CDs of Mac magazines from all around the globe (hey, the internet was not available / affordable...
  12. B

    macOS Automatic loading of .zshrc inside a zsh script

    Hi, In Mojave I ran simple bash scripts by just writing them in text and saving as script.sh and then running from terminal. In principle the same scripts do work in zsh in Catalina. But now in Catalina the same scripts often cause errors by not loading dyld libraries. I can fix the error by...
  13. H

    macOS Rename .pdf files from .csv reference list

    Hi, I have proven to myself again that I am not a programmer. I have found numerous posts with similar questions but I can’t seem to wrap my head around it all to make anything fit for my needs. Thank you in advance! I am trying to rename groups of PDFs from a .csv file. Working on a MacBook...
  14. M

    Keeping folder Synced - iCloud

    I have a folder thats very active in iCloud, consistently removing/renaming/adding files. It pains me to open illustrator or Photoshop and find that the file I'm hoping to get to work on has the little cloud icon that means it needs to be downloaded first. For a couple jpegs no drama really -...
  15. GuillaumeB

    Need help with 10.14 and basic automator script

    Hello, I have been using a very basic Automator script that auto move files and folders on the Desktop to another place in my Mac (under my main user account, nothing fancy). Yet even though the script is quite simple, i'm having problem with Automator ever since I installed the beta. I was...
  16. R

    Renaming Finder Items Using Find & Replace?

    Hi I need a quick solution to a problem. We have over 15000 images that need renaming. Is there a simple way to find text in a file name (from a cvs file) and replace text in a file name (again from a csv file)?? Eg. File Name - AA021 asphalt/fuchsia FRONT.jpg We have a CSV of full names...
  17. Q

    Launch Apps from Dashboard [or] How to Turn an Alias into a Widget

    Hey everyone, It would be useful and quicker to me if I was able to launch certain apps like Firefox or Spotify (the actual apps) while in Dashboard view mode, but I can’t seem to find a widget that allows me to do that. The alternative I thought of was to create an alias of an app, but I...
  18. hayduek

    Geektool Humidity only script

    Hey Now... So I've been messing with Geektool and I'm not trying to do anything fancy, just single text lines. So far i've got time, day/date/month/year, standard weather, and feels like temp. Each one is in it's own separate shell. The weather data is extracted from accuweather.com. Since I...
  19. Cynthia Blue

    macOS Script to move files to new subdir

    I'm new to Applescript and Automator... I have done some limited cron scripting in my past but will need to relearn how to do it. What I'm looking to do is move all my .mp4 and .mov files from my hard drive to my external backup drive that's connected via my network. So basically just from one...
  20. A

    macOS Run Script with Launchd at Login

    I'm attempting to setup a Launch Agent that will run a simple shell script to mount a FUSE drive at login. I have written a .plist file and moved it into the ~/Library/LaunchAgents/ directory (shown below). Both the .plist and the shell script have permissions of 755. I am able to use the...