r/Scriptable • u/MtbGot • Oct 16 '24
Help Alexa + scriptable
Hi! Do you know if it is possible to create some buttons/widgets to manage Alexa devices from the home screen?
r/Scriptable • u/MtbGot • Oct 16 '24
Hi! Do you know if it is possible to create some buttons/widgets to manage Alexa devices from the home screen?
r/Scriptable • u/MtbGot • Oct 16 '24
Hi! I did some widget lists that I love, but when I press on any line, instead of executing the command directly, it always goes to the scriptable app first. So you know how to avoid it?
Thanks!
r/Scriptable • u/Portatort • Oct 16 '24
I must not be passing parameters into the script correctly?
When I run it the script suggests that the parameters haven’t been received.
Yet when I tick show when run, I can see the widget exactly as I would expect.
r/Scriptable • u/MtbGot • Oct 16 '24
Hi!
I am not a programmer and I don’t have a lot of coding knowledge, however, I managed to change and modify some scripts to create my custom widgets (thank you all!!). However, I would love to modify the script of the translated and blurred widgets (which is awesome), to get all the “set” of possible widgets at once.
You provide the name of the theme and the the icon size and then you obtain a set of files, with a descriptive name, in that way, if you change your mind and move a widget, you can easily change the background, something like:
Name Examples: TEMA_noText_TR_LargeW_Top TEMA_noText_TR_LargeW_Bottom TEMA_noText_TR_MediumW_Top TEMA_noText_TR_MediumW_Middle TEMA_noText_TR_MediumW_Bottom TEMA_noText_TR_SmallW_TopLeft TEMA_noText_TR_SmallW_MiddleLeft TEMA_noText_TR_SmallW_BottomLeft TEMA_noText_TR_SmallW_TopRight TEMA_noText_TR_SmallW_MiddleRight TEMA_noText_TR_SmallW_BottomRight
The name would be: THEME_ICON.SIZE_ BLUR.TYPE_ WIDGET.SIZE&LOCATION
Where: THEME - Question
ICON.SIZE - Question Text - Big icons noText - Small icons
BLUR.TYPE - All TR - Transparent, no blur LightB - Light, light mode blur DarkB - Dark, dark mode blur Blur - Blur - Just blur
WIDGET.SIZE&LOCATION - All LargeW_Top LargeW_Bottom MediumW_Top MediumW_Middle MediumW_Bottom SmallW_TopLeft SmallW_MiddleLeft SmallW_BottomLeft SmallW_TopRight SmallW_MiddleRight SmallW_BottomRight
Thank you!!!!
r/Scriptable • u/Keger_81 • Oct 16 '24
Hi, question to the community: the weather cal hasn't been working properly for three days. The code has already been updated but it still doesn't work. Does anyone have any ideas?
r/Scriptable • u/Haunting-Ad-655 • Oct 13 '24
When using a webView to load HTML with a dark background, it's noticeable that a white background is visible briefly before the HTML is fully loaded (resembling a white flash/blink).
How can I get rid of that behavior?
r/Scriptable • u/CleitonArrascaeta • Oct 09 '24
Hi, how are you? I'm here to ask for help with a somewhat silly question. The thing is, I don't know if you know, but there's a bot on Discord called Mudae, and it takes time, and the more accounts playing, the higher the value of the waifus, the issue is that I don't have that much time to play on so many accounts simultaneously, and I found out about a script that runs multiple accounts without having to log in The thing is, I went looking for information and someone to help me, and I know how hard it is to earn that hard-earned money, and I don't like spending it on games. So I came here to the Reddit community to find out if there is anyone who knows how to program a mobile script for my device 😔
Ps: Sorry if there are some things that don't make sense, I'm Brazilian and I'm using the translator, thank you very much for reading this far! :)
r/Scriptable • u/MrRetroplayer • Oct 08 '24
Can a script be added to the share menu? Run script appears but I don't know how to associate it
Thank you
r/Scriptable • u/foxinbox4ever • Oct 02 '24
This gets you the latest wallpaper from various wallpaper reddits, then the output can be used by the shortcuts app to change the wallpaper of your iPhone. I've set it up so my wallpaper changes twice a day. Anyone got any ideas to improve the code are welcome.
r/Scriptable • u/AllrdyTaken • Sep 28 '24
How do I show line numbers on macOS client?
r/Scriptable • u/Aggravating_Stress • Sep 25 '24
Ok yall. Back when I had an android I had a widget that would give me current weather conditions in a rude/snarky/explicit way and I loved it. Moved to ios and kinda forgot about it and after looking around I wasn't able to find something that fit what I wanted without having to pay monthly. I decided to make it myself. Now this is very barebones and my first attempt at making a scriptable widget. Here is the link to the github:
https://github.com/TheDevilsDoctor/Snarky-Weather
Enjoy and let me know what yall think!

r/Scriptable • u/Arudion • Sep 24 '24
Does anyone have the same problem? Not a single widget is working anymore, everything is white now without script changes.
r/Scriptable • u/mcmackinr11 • Sep 24 '24
Anyone using mzeryck’s Weather-Cal widget having issues with reminders not showing up in iOS 18? Calendar events still show up but no reminders do. May have something to do with IOS 18 reminders and calendar events now both show up in your calendar
r/Scriptable • u/Hasasmo • Sep 23 '24
Hello, So there’s this website that has recalls for various products, including vehicles and whatnot.
I’m fairly new to scripting, and I’m trying to find a way to build some sort of automation/script to help me get that information and then show it as a normal notification on my iPhone or through an email.
I apologize for my lack of knowledge, but I’d really appreciate it if anyone can help me with advices like the best approach to do this task, are there any dependencies that I need to have in my iPhone, is Scriptable even capable/needed for this task?
You can find the link for the website below:
r/Scriptable • u/Whole_Custard8732 • Sep 17 '24
Hi! Can we expect an update to the transparent widget one? Since thr iOS 18 update, looks like the cropped image (in my case, big top one) is not aligned properly with the background...
r/Scriptable • u/Sigh_pradeeban • Sep 17 '24
Hi there,
For my workplace, we have a QC checklist that we need to go through and make sure that everything on that list is complete. List includes items like, check if account is added to Azure, if a certain software is installed, check if the name or time zone is correct. Is there a way to create a script that I can run at the end of the manual check to make sure that all the criteria's are met? If yes, will someone be able to assist me in this? I will be able to provide more information.
r/Scriptable • u/heyprashant • Sep 16 '24
I’ve two scripts which I use for tracking daily habits. I frequently get this error, and when log my activities it will go away and works fine. Couldn’t able to find the solution please help. Adding script below for reference-
const fileManager = FileManager.iCloud() const dataPath = fileManager.documentsDirectory() + "/health_data.json" let meditateData = {} let workoutData = {}
// NEW DATA let newData = args.shortcutParameter if (newData) {
data = newData
const string = JSON.stringify(data) fileManager.writeString(dataPath, string) }
// READ DATA if (fileManager.fileExists(dataPath)) { fileManager.downloadFileFromiCloud(dataPath)
let dataContent = fileManager.readString(dataPath) dataContent = JSON.parse(dataContent)
meditateData = dataContent["Meditate"] || {} workoutData = dataContent["Exercise"] || {} }
r/Scriptable • u/iLuki • Sep 15 '24
r/Scriptable • u/th3truth1337 • Sep 13 '24
I recently moved to a new place where my washing machine is located in the basement. To help manage my laundry routine, I created this Scriptable widget called "Laundry Buddy". It's designed to set reminders for washing and drying clothes, with special considerations for apartment living.
The widget provides options to start washing or drying. When activated, it asks for the duration and, if washing, where you'll dry your clothes. It then sets appropriate reminders and warns you if your laundry might finish too late at night.
I wrote this script with some assistance from AI to help structure the code and implement best practices. The core idea and functionality requirements came from my personal needs.
I'm sharing this script with the Scriptable community to get feedback and suggestions for improvement. If you see any ways to enhance the functionality, improve the code structure, or add useful features, I'd love to hear your ideas!
// Laundry Buddy: Friendly Reminder Widget and Script
// Storage functions
// Reminder creation functions
// Time restriction check
// User input function
// Widget creation function
// Main action handling function
// Main function
// Run the script or create widget
Script.
Thank you for checking out Laundry Buddy! I hope it can be useful for others who might be in similar situations.
Thanks for the feedback! I've added some screenshots of the Laundry Buddy script in action. Here are a few key views to give you context:
Thanks for the feedback! I've added some screenshots of the Laundry Buddy script in action. Here are a few key views to give you context:
https://imgur.com/a/Af5KrpS
r/Scriptable • u/th3truth1337 • Sep 06 '24
So, I've been on a nostalgia trip lately, thinking about those old-school games like Dope Wars (you know, the one where you'd travel around buying and selling... um, "pharmaceuticals") and those text-based music tycoon games. Somehow in the run both got mashed up and „Global Trader“ was „born“.
It's basically a text-based adventure where you play as a trader traveling the world. I kind of took the trading mechanics from Dope Wars and threw in some career progression inspired by those music games. Then I added a few of my own twists to keep things interesting. I had quite a blast making it - but won‘t lie, Claude AI was quite some help. It's got a bit of everything - trading, odd jobs, and even some shady stuff if you're feeling risky. Oh, and lots of random events to keep you on your toes! The project was more of an experiment, what is possible on the iphone with scriptable. Did this project along with a python text-based game with similar dynamics.
Here's what you can do in the game:
The script got longer than I thought (guess I got carried away!), but still very basic and surely lot of space to improve. You can grab it here: https://pastebin.com/5gbGHqJ0
I'd love to know what you guys think! If you find any bugs or have ideas to make it cooler, let me know. And, if you want to add your own twist to it, go for it! Maybe add in a music career path or something?
Happy trading, and don't blow all your virtual cash in one place! 😉
r/Scriptable • u/BettyPunkCrocker • Sep 06 '24
I feel so silly that I can’t figure this out, but how do you play an episode of a podcast? I know how to open a specific episode via url but it just opens it in the Podcasts app without playing it.
r/Scriptable • u/anki_steve • Sep 06 '24
My objective is to have my mac change the contents of an iCloud document to tell my ipad to turn the music off. It works, but the script does not seem to run in the background. I can just run it once:
const fm = FileManager.iCloud()
const filePath = fm.documentsDirectory() + "/silentModeStatus.txt"
console.log(`Full file path: ${filePath}`);
function readStatus() {
if (fm.fileExists(filePath)) {
const status = fm.readString(filePath).trim().toLowerCase();
console.log(`Read status: ${status}`);
return status;
}
console.log("File not found. Using default 'off' status.");
return "off";
}
async function pauseMusic() {
try {
console.log("Attempting to run PauseMusic shortcut");
let shortcutURL = "shortcuts://run-shortcut?name=PauseMusic";
let success = await Safari.open(shortcutURL);
if (success) {
console.log("PauseMusic shortcut URL opened successfully");
} else {
console.log("Failed to open PauseMusic shortcut URL");
}
} catch (error) {
console.error(`Error in pauseMusic: ${error}`);
}
}
async function checkStatus() {
console.log("Starting checkStatus loop");
while (true) {
let currentStatus = readStatus();
console.log(`Current status: ${currentStatus}`);
if (currentStatus === "on") {
console.log("Status is 'on'. Triggering PauseMusic shortcut");
await pauseMusic();
} else {
console.log("Status is not 'on'. Not triggering PauseMusic shortcut");
}
console.log("Waiting for 1 second...");
await new Promise(resolve => setTimeout(resolve, 1000));
}
}
// Start the checking process
console.log("Script started");
checkStatus();I think this is probably a limitation of the iPad. But if anyone knows of a workaround, let me know. I did find a way to trigger the shortcut by changing the Focus mode, but there is a delay of up to 10 seconds that way. I'm hoping for solutions that will trigger the shortcut within a second or so of me changing something on my mac.
Is it possible to trigger a shortuct on my iPad from my mac that will run the script above?
r/Scriptable • u/hatersaurus-rex • Sep 05 '24
How hard would it be to pull data from the NFL to make a widget that shows the NFL standings? There is an app out there that does this already but it is not updated anymore and the widget breaks so I would like to build one in scriptable.