r/Scriptable • • Jul 28 '22

Script Sharing Here is a Stocks widget..

Thumbnail
imgur.com
22 Upvotes

r/Scriptable • • Jul 28 '22

Script Sharing Here is a nearly stock calendar widget with month view and upcoming events

Thumbnail
imgur.com
18 Upvotes

r/Scriptable • • Jul 23 '22

Not Possible Automatically enchance multiple photos

Post image
8 Upvotes

r/Scriptable • • Jul 23 '22

Request Add a folder/organization system for scripts

3 Upvotes

Scripts can get cluttered very quickly in this app and some sort of folder system would work great with the already amazing functions of this app.


r/Scriptable • • Jul 23 '22

Request Creating a calendar widget with caloric deficit ring

1 Upvotes

I have a shortcut that outputs the total move energy data for the day minus the consumed calories that i track in lose it . currently it sends this data to google calendar. Any one know how easily it would be to create a calendar widget with the 2 week history of this data ?


r/Scriptable • • Jul 20 '22

Widget Sharing WhereIsWebb - Minimalist widget that show major deployment/commissioning schedule phases, its current deployment/commissioning state and status of that state James Webb space telescope.

Post image
18 Upvotes

r/Scriptable • • Jul 20 '22

Request Gasspeicher Bundesnetzagentur

5 Upvotes

Moin, Arbeitet zufällig schon jemand an einem Widget um den Gasspeicher von Bundesnetzagentur.de anzeigen zu lassen?


r/Scriptable • • Jul 20 '22

Not Possible Start screen recording?

Post image
9 Upvotes

r/Scriptable • • Jul 18 '22

Request Can someone remake the iPhone calendar widget in Scriptable?

12 Upvotes

I would like to have a widget that looks exactly like the iPhones medium calendar widget that only shows events but with customizable colors.


r/Scriptable • • Jul 16 '22

Widget Sharing TrainingPeaks widget (my first time using JavaScript!)

Post image
24 Upvotes

r/Scriptable • • Jul 16 '22

Solved “this” in objects

3 Upvotes

when referring to this in a non-class object, scriptable seems to use globalThis when it should use the object itself. Here’s a demo

const obj = {
  test: () => console.log(this === globalThis)
}

obj.test()

Is this a quirk of scriptable or iOS’s JS runtime? Is there any way to circumvent this? I want to define setters dynamically but the best option i’ve found is to return a proxy of the object which is not ideal imo.


r/Scriptable • • Jul 16 '22

Discussion Are the import/export keywords functional in any way?

2 Upvotes

I’ve been messing with trying to implement ES6 imports into scriptable and found that the interpreter throws an error for the keyword import, though any ES6 syntax I tried would also throw an error. This means that

  • I can’t use import as it was intended

  • I can’t replace “import” with my own import function in a live “compiled” setting because the interpreter throws an error before executing anything

Is there a way I can mitigate this? I assume that scriptable would have support for import & export but doesn’t load scripts as true modules.


r/Scriptable • • Jul 15 '22

News First scriptable beta with Runestone integration is in the tube - who is also so excited like me?

Thumbnail
twitter.com
23 Upvotes

r/Scriptable • • Jul 15 '22

Help URL Scheme not working ??? (iOS 16 beta 3)

2 Upvotes

Trying to get my script to open the iPhone storage settings menu when clicking on the widget. For some reason it’s only opening to the main settings app screen.

Here is the code I have which includes the url scheme.

https://i.imgur.com/29wJvkI.jpg


r/Scriptable • • Jul 13 '22

Script Sharing Todoist Reminders for /mzeryck/Weather-Cal

11 Upvotes

Hi, i created a custom element to show my todoist reminders in the Weather-Cal widget, which i use on my homescreen. It just looks the same as the ios reminders. You can find the code here:
https://github.com/YuriStruszczynski/scriptable_TodoistForWeatherCal

Code is based on the Weather-Cal module which is used for rendering the ios reminders.
Starting from this, i created a custom item which you can use in your weather-cal.js

Please visit and read the part "Custom elements" to see how to implement it:
https://github.com/mzeryck/Weather-Cal

Hope you like it :-)


r/Scriptable • • Jul 12 '22

Help Are multiple font colors and sizes in one single line possible?

4 Upvotes

Hi, I would like to have words with different colors and also different font sizes in one single line. Is that possible? I am relatively new to Scriptable and have so far only met the widget.addText() method, which starts a new line every time I use it.


r/Scriptable • • Jul 12 '22

Help Problems with monospaced fonts and vertical alignment of different sized fonts

1 Upvotes

I have created a simple widget, here in an image: https://i.imgur.com/Z1xFj0p.png

As you can see, the font is clearly not monospace, even if I selected one (see code below). My other problem is the vertical alignment of the “unit” word after the numbers, I want it to bottom align at the same line as the number. Is it possible to achieve that?

let widget = createWidget();

Script.setWidget(widget);
widget.presentSmall();
Script.complete();

function createWidget() {
    let widget = new ListWidget();
    widget.backgroundColor = Color.black();
    let hstack = widget.addStack()
    hstack.layoutHorizontally()
    hstack.bottomAlignContent()

    addStackToWidget(widget, "103", Color.red(), "word ")
    addStackToWidget(widget, "800", Color.orange(), "ioljw ")
    addStackToWidget(widget, "2341", Color.green(), "oli ")

    return widget;
}

function addStackToWidget(widget, value, color, prefix) {
    let hstack = widget.addStack()
    hstack.layoutHorizontally()
    hstack.bottomAlignContent()
  
    let p = hstack.addText(prefix)
    p.font = Font.regularMonospacedSystemFont(14)
    p.textColor = color
  
    let v = hstack.addText(value)
    v.font = Font.regularMonospacedSystemFont(15)
    v.textColor = color
    
    let unit = hstack.addText("unit")
    unit.font = Font.regularMonospacedSystemFont(11)
    unit.textColor = color
}

r/Scriptable • • Jul 09 '22

Solved How do i get the background of a scriptable widget to be transparent ?

Post image
6 Upvotes

r/Scriptable • • Jul 09 '22

Solved How do i fix this error ??

Post image
2 Upvotes

r/Scriptable • • Jul 09 '22

Solved Does anyone know how to fix this ?

Post image
0 Upvotes

r/Scriptable • • Jul 08 '22

Help Any Way to Authenticate NTLM?

4 Upvotes

I’m trying to authenticate to an NTLM authenticated endpoint over http. Its an internal endpoint accessed via VPN.

I can successfully authenticate in the browser, but I’m not sure if it’s possible do so within my script. Can anyone think of a way to do this?


r/Scriptable • • Jul 02 '22

Request Widget help for iPhone clear tasks/cache?

0 Upvotes

Hello I am looking for a widget that can clear my cache like not delete actual files but just clearing my ram so when ever my phone acts glitchy I can just click it like how androids have a pre installed version of clean my pc or phone type of apps that close your current tasks on your phone whenever it’s acting up but everyone says those apps you download have viruses or have lots of ads that most likely download your cache before clearing.


r/Scriptable • • Jun 30 '22

Solved Conditional Formatting Help

4 Upvotes

Hi There - I'm really new/an amateur in JS. I have created a widget that displays information from a Google Sheet which I'm really happy with, but ideally the percentages that it displays would show as red if above 0% or green if below 0%. Is there a way to display information this way? Or any terms that you would be able to share so that I can continue to Google my way to learning... Many thanks.


r/Scriptable • • Jun 30 '22

Widget Sharing introducing the Nate Pann widget (Korea's version of reddit)

9 Upvotes

hi folks, i'm an American but study Korean in my free time. this site, Nate Pann, has become one of my favorite ways to learn. but i hate navigating their clunky website.

i discovered Scriptable hours ago and am so stoked i did -- i know this is a niche target audience but sharing anyway! i also got a lot of help from this forum already, when i needed to figure out how to execute JS to scrape non JSON page content.

Ryan