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

script

  1. G

    Iphone Script to make iphone silent based on outlook calendar

    Hi there, is there a way to use scripts to silence the iPhone (and maybe watch) when there is an event in your Outlook calendar? Calendar content could be synced with Calendar is needed (although I do not have this now).
  2. RazorBackXX

    Understanding Folder Size Differences Between rsync Zsh & Finder on macOS

    Hey My Friends, I’m working on a Zsh-based script in the macOS terminal, and I’ve hit a roadblock while trying to obtain precise file sizes for folders. I’m seeing discrepancies between the size reported in Finder and the size calculated via terminal commands, and this is critical for my app...
  3. H

    Random file selector app/terminal script

    Hi, I've done a fair bit of digging but have only found 'solutions' that haven't worked for me. I'm after an app or terminal script that can randomly select X amount of files from within many subfolders within a main folder, and copy them to my desktop. Has anybody had a experience with...
  4. RazorBackXX

    macOS macOS Game Mode vs. renice -20: Combining for better performance?

    "I'm trying to optimize game performance on my Mac and I'm curious about combining two different performance-boosting methods: 1. macOS Game Mode: I know this built-in feature prioritizes game performance when running full-screen. I think it allocates more system resources to the game, reduces...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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 -...
  19. 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...
  20. 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...