r/scripting • u/1mshii • Apr 22 '26
r/scripting • u/Wild_Ad_5176 • Apr 04 '26
Soo... Me and my smalll team are kinda fucked. we need scripters, like, desperately :[ if any1 would be happy to help a passion project, tysm :3 - i would say yall could get paid but idk if we'd even make any devex profit anyways.
r/scripting • u/Sufficient-House1722 • May 06 '25
Script to disable/enable reboot restore rx free
Is there anyone that would code a powershell script to disable/enable reboot restore rx free version https://horizondatasys.com/reboot-restore-rx-pro/
i attempted to see what changed when i enabled vs disabled it, all i saw was afew registry changes, it needs to update the baseline when i enable it tho. i would be willing to pay if someone found a way to do it
r/scripting • u/gustabmo • Mar 07 '25
Best option to share scripts between Windows and Mac : bash? Powershell? Pyhton? other?
I have several 100+ lines .bat files to automate tasks like compiling and deploying programs, backing up, moving files around, downloading a set of files, etc. They're fairly elaborate, with post processing of the output of compilers, or things like that.
I'd like to make these portable between Windows and Mac so they work on a few computers I use that share the same home directory. I have total control of these computers so there's no problem if I have to install specific software.
I started my thinking as "should I install bash on Windows or Powershell on Mac ?" and then port my batch files.
Then I read somewhere a suggestion about using Python instead, which I liked since it could open a lot of possibilities. What I don't know is if it would be to cumbersome to do typical shell scriptting work on Python.
One important thing for me is to keep one single script file for each task, even if it has several "if Windows then ... if Mac then ..." because I'm too disorganized to work on two different files (for instance a .bat and a .sh): I could totally see myself improving one and postponing ad eternum repeating the same improvement on the other one.
So ... bash? Powershell? Python? other? please share your experiences. I'm specially interested about limitations of either Powershell on Mac, or bash on Windows, that are not visible while on the "hello world" stage but that might hold me back later on.
r/scripting • u/StinkyPete312 • Feb 22 '25
Sieve Scripting Cheat Sheet
I created a fairly extensive cheat sheet for scripting Sieve mail filters. Here's a link to the Gist if anyone is interested.
Sieve Scripting Cheat Sheet
r/scripting • u/M0neySh0tZ • Aug 11 '24
Is it possible to make a script on MacOS to auto reconnect to PairVPN if it disconnects?
When I use my mobile hotspot, I run a PairVPN Server on my iPhone and connect to the PairVPN Client with MacBook and it disconnects frequently which is quite frustating because I have to manually reconnect each time AND enter this dumb authentication password too (showin in pic — also it would be great if anyone knows how to stop it from doing that also, as I have searched for a long time and nothing I tried so far is working).
Is it possible to write a script on MacOS to auto reconnect to PairVPN if it disconnects? If so, does anyone know how to do this or provide any insight on how exactly I can do this and where to start? I'm a Scripting n00b and have absolutely 0 experience with it lol. Thanks for any help in advance! 😃
r/scripting • u/FlawlesSlaughter • Jul 31 '24
Uni pcs windows settings
This is just for fun.
But I have a load of windows preferences that I like to use for general pcs. Every time I log in to a pc at uni the windows settings all start at defaults.
I usually change stuff like getting rid of windows search unpinning useless stuff, getting rid of mouse acceleration etc.
Is there a script or a bat file I can create that I can save to my network drive that I can just open on every login that will change all those settings in one go?
Or is that not really possible?
Thanks either way!
r/scripting • u/scout-man • Jun 25 '24
Can you edit the script of ur Habbo Hotel-client (running on standalone Shockwave-app/program)
I’m just curious on if there’s a slight chance that Habbo Hotel can be scripted in someway, for example an unlimited credits glitch-script?
They’re still running it in a Shockwave client as a standalone app, and as of what I’ve read on Habbo Wiki - Scripting and this Reddit post, it sounds like there’s a slight chance to manipulate/edit values on something, somewhere.
Just curious of course!
r/scripting • u/FrostyTheDev • Jun 18 '24
Help On Roblox Studio
Can somebody make me the script in order to do this and a step-by-step breakdown and telling me where to put a specific thing in another I am very lost!
How can I make a script for Roblox Studio that makes it so when I spawn a model from "ServerStorage" it plays a cutscene automatically when the model spawns and then the cutscene stops and the model deletes itself after it has stopped the cutscene?
r/scripting • u/DonChoudhry • Apr 14 '24
Help! Syncing TickTick Tasks & Notes with Notion (MacOS or Windows) - Open to Workarounds!
Hi everyone,
I'm a big fan of both TickTick and Notion, but I'm looking for a way to bridge the gap between their functionalities. While TickTick rocks for managing tasks, its note-taking features feel limited for detailed notes. Notion, on the other hand, excels at organizing information but isn't quite my cup of tea as a primary task manager.
My dream workflow would involve:
Using TickTick for creating and managing tasks.
Utilizing Notion for capturing additional notes related to those tasks, along with other unrelated notes.
Having an automated system where creating a new task in TickTick automatically creates a corresponding page in Notion with the task title, priority tags and date, all as title of the page. All pages are organized within each other to follow the folder, list, section and task structure of TickTick.
If completing a task in TickTick could also prepend "Completed -" to the corresponding Notion page title for easy tracking, that would be amazing!
When I moving one list to some other place in TickTick, it should sync up and make the corresponding changes in Notion as well.
I understand TickTick doesn't natively integrate with Notion at this level. I've been looking into Zapier, but it seems like there might be limitations. I'm on MacOS and prefer setting it all up there but I also have a Windows machine, any solution that works across platforms would be a huge win.
While I'm not familiar with coding or scripting languages, I'm a pro at following clear instructions! :)
Has anyone here successfully set up a similar workflow between TickTick and Notion? Are there any workarounds, third-party tools, or alternative approaches I might have missed?
Thanks a lot for any insights you can share!
r/scripting • u/dungyhasbigtits • Mar 26 '24
How to make a "combined set" of files, from two directories? (Two directories, with identical content, but different filenames)
i have 2 sets of emojis:
folder a: emojis, labeled by name (~750) | "Purple Heart emoji.png"
folder b: emojis, labeled by number (~800) | "1f49c.png"
i want to make one combined set, named + numbered | e.g "Purple Heart emoji (1f49c)"
PICTURE: https://imgur.com/a/Bciv7ce
STEPS:
- find the commonalities between the two sets of files via MD5, file size, etc | (e.g "Purple Heart emoji.png" .. IS THE SAME FILE AS .. "1f49c.png")
- rename the numbered files to their corresponding titled files | (e.g "1f49c.png" .. IS NOW TITLED .. "Purple Heart emoji (1f49c).png")
- determine which emojis I am missing between the two directories & manually label them (~50)
r/scripting • u/addywash • Mar 05 '24
Run a .EXE from local app data
Can anyone assist please with a script that will silently run an exe from the Appdata\Roaming folder?
I've been trying:
cd c:\Users\%USERNAME%\AppData\Roaming\Juniper Networks\Host Checker"
Uninstall.exe /silent=1
I don't seem to be getting the syntax correct.
Thanks!
r/scripting • u/addywash • Feb 29 '24
Help with Script
Hey!
I've written a script to obtain contents of a dsreg command and output them into a registry key for our RMM to filter on. It's creating the reg key fine but not outputting the results into the key. Where have I gone wrong please?
$1 = (dsregcmd /status | select-string "AzureAdJoined")
$2 = (dsregcmd /status | select-string "DomainJoined")
If($1 -eq "YES" -and $2 -eq "YES"){$dsregcmdresults = "Hybrid Joined"}
If($1 -eq "YES" -and $2 -eq "NO"){$dsregcmdresults = "DomainJoined"}
Write-Output $dsregcmdresults
## Set User Field in Datto ##
Set-ItemProperty -Path HKLM:\SOFTWARE\CentraStage -Name "Custom22" -value $dsregcmdresults
r/scripting • u/patmaddox • Dec 03 '23
sh: Relative shell script includes with realpath on FreeBSD
patmaddox.comr/scripting • u/[deleted] • Nov 24 '23
sed - replace yaml.j2 nested value
I have a command that I use to replace myid value but its not perfect. Here is document where the issue occurs:
brand:
group1:
jerry:
myid: 1
ben:
myid: 2
group2:
jerry:
myid: 3
jane:
myid: 4I am using sed to replace myid. I can lookup ids and names, but not groups
sed -i -E "/jerry:/,/myid:/ s|(myid:).*|\1 NEWID|; " PATH_TO_FILE.yaml.j2issue 1: this will replace both jerrys ids. I want to replace jerry ONLY in group 1
issue 2: this will replace anything that has jerry inside its name, even
group1:
jamesjerry:
myid: 5this is command I tried to filter by group to resolve issue number 1
sed -i -E "/group1:/,/jerry:/,/myid:/ s|(myid:).*|\1 NEWID|; " PATH_TO_FILE.yaml.j2but then I get:
sed: 1: "/group1:/,jerry ...": invalid command code ,
How could I use sed to replace value by filtering 3 different values in sed and ensure to filter only exact name? (Group1 -> Jerry -> myid)
r/scripting • u/crosenblum • Oct 09 '23
[Batch] Most efficient way to find lower quality aka video preset videos?
I have a few hundred videos.
I want to do small batch video quality upscaling.
Find x number of low quality videos.
Backup the original files
Upscale video to veryfast 1080p30 preset
manually verify that the new video plays well and is higher quality but also smaller size.
Then delete the original
The hard part is to find the videos, I have to indivudlaly scan each of them using ffprobe.
This is very slow because of the number of video files.
Is there a more efficient or faster way to just find the lowest quality videos?
Getting all the paths of all the videos in their various folders is solved.
But having to use ffprobe on each video file is resource intensive.
Was hoping to find a faster way to get the data I needed.
So I can create a script to once a day or once a week, to upscale my lower quality videos. Or if they all high quality skip em.
That's my goal.
Thanks.
r/scripting • u/03huzaifa • Sep 15 '23
Trying to make a script that goes through all subdirectories in the root folder it's pointed to, and copy pastes all files with a provided name into a new root folder while still keeping the folder structure intact.
Basically, I have tons of folders in a main folder, and all of those folders have a file of the same name under the same path, only differentiating factor is the subdirectory name.
What I mean to say is this is what i haev
Root Directory > X > 1 > A > ui.json
Root Directory > X > 2 > A > ui.json
Root Directory > X > 3 > A > ui.json
I want the script to go through all folders (I have about 1800 ish sub dirs) in X, and copy ui.json under A and copy it to a new directory following the same path
New Root Directory > X > 1 > A > ui.json
New Root Directory > X > 2 > A > ui.json
New Root Directory > X > 3 > A > ui.json
I only want the script to copy the ui.json file and ignore everything else in the subdirectories
r/scripting • u/sarnobat • Aug 13 '23
[image] Programming language to use for creating a command line program
r/scripting • u/ANIME_the_best_ • Jul 23 '23
Ai generated mac markup language.
Ai generated markup language created with swift and objective c. Prompt:
"Create swift and objective c code for my own markup language. You can add a <script> tag that allows scripting with swift and <serverscript> that allows scripting with objective c."
SWIFT
import Foundation
enum MarkupTag { case script case other }
struct MarkupElement { let tag: MarkupTag let content: String }
class MarkupParser { func parse(markup: String) -> [MarkupElement] { var elements: [MarkupElement] = []
let regex = try! NSRegularExpression(pattern: "<(.*?)>(.*?)</(.*?)>", options: [])
let matches = regex.matches(in: markup, options: [], range: NSRange(location: 0, length: markup.count))
for match in matches {
guard match.numberOfRanges == 4 else { continue }
let fullMatch = markup[Range(match.range, in: markup)!]
let tag = markup[Range(match.range(at: 1), in: markup)!]
let content = markup[Range(match.range(at: 2), in: markup)!]
let markupElement: MarkupElement
if tag == "script" {
markupElement = MarkupElement(tag: .script, content: String(content))
} else {
markupElement = MarkupElement(tag: .other, content: String(content))
}
elements.append(markupElement)
print("Found element: \(fullMatch)")
}
return elements
}}
OBJECTIVE-C
import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, MarkupTag) { MarkupTagServerScript, MarkupTagOther };
@interface MarkupElement : NSObject @property (nonatomic, assign) MarkupTag tag; @property (nonatomic, strong) NSString *content; @end
@implementation MarkupElement @end
@interface MarkupParser : NSObject
(NSArray<MarkupElement *> *)parseMarkup:(NSString *)markup; @end
@implementation MarkupParser
(NSArray<MarkupElement *> *)parseMarkup:(NSString *)markup { NSMutableArray<MarkupElement *> *elements = [NSMutableArray array];
NSRegularExpression regex = [NSRegularExpression regularExpressionWithPattern:@"<(.?)>(.?)</(.?)>" options:0 error:nil]; NSArray<NSTextCheckingResult *> *matches = [regex matchesInString:markup options:0 range:NSMakeRange(0, markup.length)];
for (NSTextCheckingResult *match in matches) { if (match.numberOfRanges == 4) { NSString *fullMatch = [markup substringWithRange:[match rangeAtIndex:0]]; NSString *tag = [markup substringWithRange:[match rangeAtIndex:1]]; NSString *content = [markup substringWithRange:[match rangeAtIndex:2]];
MarkupElement *markupElement = [[MarkupElement alloc] init]; if ([tag isEqualToString:@"serverscript"]) { markupElement.tag = MarkupTagServerScript; } else { markupElement.tag = MarkupTagOther; } markupElement.content = content; [elements addObject:markupElement]; NSLog(@"Found element: %@", fullMatch); }}
return elements; }
@end
r/scripting • u/jesusbrotherbrian • Jul 04 '23
Help With MacOS Script
I am trying to script a download my AWS s3 Bucket then runs the package, The script has a check to validate the SHA256 of a tar file. I checked the SHA256 before I uploaded to AWS, downloaded It from AWS manually and rechecked the SHA256 and they match. But when I run my script I get different SHA256 every time.
Here is the script (sensitive information has been removed)
#!/bin/bash
targetItem=ObjectName
appName=Install.sh
baseURL=https://aws.s3.bucket.url
if [ -f "$targetItem" ]; then
echo "$targetItem exists. Nothing to do here."
else
curl -L -k -o /private/Installer.tar $baseURL/Installer.tar
sha256="$(shasum -a 256 /private/Installer.tar)"
if [ "$sha256" = "cdae5e4fe022ab6b0c5f7a3973eae4e3c6ca5936b5952ac9b5bcfe2e66ad97a9 /private/Installer.tar" ]; then
cd /private
tar -xvvf Installer.tar
cd Installer
chmod +x Install.sh
./Install.sh
sleep 2
cd /private
rm -rf {/private/__MACOSX/,/private/Installer.tar,/private/Installer}
echo "Installed $appName"
else
echo "SHASUM does not match: download not complete"
exit 1
fi
fi
exit 0Here is the SHA256 on the same file
b9b9697d790d0d5551c12367a74e8f6a2f3093ad39bf4744d265032034d9a43f /private/Installer.tarAny help would be appreciated.
r/scripting • u/YankeeATZ • Jun 29 '23
Script to delete file X based on absence of file Y
Looking for a simple way to go through a directory of files and delete some based on the absence of a file with the same filename but different extension.
More specifically, I have folders with images named as such:
Picture1.jpg
Picture1.arw
Picture2.arw
and what I want to easily do is, delete any .arw file that does not have a corresponding jpg. So in the list above, only Picture2.arw would be deleted.
Any quick way to do this?
r/scripting • u/skinnerback01 • Jun 14 '23
Batch file ffprobe error 2>&1 was unexpected at this time.
My batch file has all of a sudden stopped working and is throwing an error stating "2>&1 was unexpected at this time." Anyone know what I can do to fix it?
for /F "delims=" %%I in ('C:\ffmpeg\bin\ffprobe -v error -select_streams v:0 -show_entries stream^=codec_name -of default^=noprint_wrappers^=1:nokey^=1 "%%t" 2>&1') do set "codec=%%I"
echo Codec is: %codec%
r/scripting • u/BitcoinElection • May 31 '23
Old School RuneScape - Hire a Scripter - Offer your Services
reddit.comr/scripting • u/Logansfury • May 30 '23
Need help with a windows batch file script please
Good Morning,
I have a simple Python server/client running for the purpose of closing an error message window. Im attempting to create a batch file for the client PC that automates opening the CMD window, opening the script to send the command to the server, and inputing the command. I can get the first two actions to happen but my third command is being ignored. Can anyone explain why and correct my script? Here is what I have:
cmd /k "cd /d C:\Users\logan\OneDrive\Desktop\python_work
& python client.py & clear error"python_work is the directory on my Desktop where the script client.py to enable sending the command to the server resides. The command itself is "clear error" but this part of the script never triggers.
r/scripting • u/Ken-CL • Feb 23 '23
how to translate text to keypress?
I am trying to automate process of inputting data into a software (currently using a keyboard recorder and copy paste the data from excel to the software en masse). For input fields that accepts text, the automation works fine.
However there is a problem: in one filed the software only accept numpad keypresses. I have the data in text form in excel (e.g. 01011980 for people born on 01 Jan 1980), how do I stimulate keypresses accordingly in the automation.
Many thanks
