r/Scriptable • • May 31 '21

Widget Scriptable + Excel

10 Upvotes

Hi all!

I am noob in javascript and other stuff, but trying to make a widget that is showing cell-value, calculated in Excel file stored on OneDrive for Business.

At first, I made a GET URL for getting cell's data in MSGraph sandbox (I have been granted access to 1drive for MSGraph). I have application ID registered in Azure also.

What’s my next move to make Scriptable get data (all these auth things and so on)?

As a next step - help me to choose what Quickstart guide section in Azure fits for Scriptable?

What type of application are you building?

  1. Web application

    1. Node.js
  2. Mobile and desktop application (no?)
  3. Single-page application (SPA)

    1. JavaScript (auth code flow)
    2. JavaScript (implicit flow)
  4. Daemon application (no?)

r/Scriptable • • May 31 '21

Help Can sb? fix this? The background is black all the time (it should be I picture I select). Somehow something of the script overwrites the picture

1 Upvotes

r/Scriptable • • May 31 '21

Solved How to Play a random video from a youtube playlist. Would it be possible? Youtube autoplays videos when opened from url but not playlist. The idea is to take a random video link from a playlist and open it.

2 Upvotes

r/Scriptable • • May 30 '21

Help Trouble trying to create this Widget layout/design.

5 Upvotes

Hello, I've got to the point where I have spent way too long then I'm proud of trying to design this layout for my Widget. What I'm trying to do is create something like this, https://imgur.com/a/O1DZtnV where the blue rectangles represent an image (top being the biggest and the remaining 4 all have equal sizes and contain a top and bottom text field).

After some looking around I found a project posted on GitHub that has a grid of images. After looking and using some aspects of the code I got something that I think is really close to what I want. Here is what it looks like right now, https://imgur.com/a/fnonIxM.

The issue I have right now is, I can't seem to get the grid of 4 images/text to be in the centre like the main image. I also have trouble increasing the size of the images in the grid. If I change the

folderElement.imageSize = new Size(110, 50)

it seems to affect the whole widget and miss-aligns the top image along with the top and bottom text that is supposed to follow each of the four images in the grid.

I'm not sure if my approach in designing/creating the grid elements is completely wrong or if this design is too complicated to be done in Scriptable. Any help or insights at all would be great, thank you!

Link to the layout source code of what I have at the moment (code is a little messy): https://pastebin.com/Qzr45rpq


r/Scriptable • • May 30 '21

Help How to use third-party fonts installed on the phone for scriptable widgets?

3 Upvotes

r/Scriptable • • May 28 '21

Script Scriptable + VSCode = ❤️

99 Upvotes

Hello everybody! Now I am working on one simple project that will allows you to create your scriptable apps using VSCode, main features is:

  • autocomplete
  • hotkey to run scriptable(CMD+SHIFT+B)
  • ability to sync your scripts to git repository as LINK(it will be synced!! between app and git(on push)).

You can check it now(and maybe give a stars for it😄): https://github.com/gebeto/scriptables

Work in progress, and I am just wondering is it will be interesting for any of you? Feel free to ask any questions or make some suggestions😄

Check simple demonstration here


r/Scriptable • • May 29 '21

Help How to get Shortcut's "Choose from menu" in Scriptable?

2 Upvotes

I have been re-writing my shortcuts with Scriptable but got stuck trying to get the result of a user's choice. My requirement is that I should be able to complete the script from the lock-screen.

  1. Does Scriptable already allow some way of doing it (w/o using Shortcuts)?
  2. Is it possible to replicate this behavior integrating Scriptable-Shortcuts?

I already tried x-callback-url from Scriptable to Shortcuts: it works, but iOS launches Scriptable then jumps to Shortcuts to prompt the menu; otherwise, if I uncheck "Run In App", it crashes with "Error: XCallbackURL is not supported in Siri."


r/Scriptable • • May 27 '21

Widget Hello everyone. This is my first widget and unfortunately only available in German at the moment. I will continue to work on the widget and translate it into English and publish it at a later date. Let me know if you like it and give me some feedback. (: (link in the first comment)

Post image
17 Upvotes

r/Scriptable • • May 26 '21

Request Does anybody know how to make a scriptable look like this? This is on Widgy but I recently figured the battery level seems more accurate using scriptable

Post image
20 Upvotes

r/Scriptable • • May 26 '21

Solved Help please. Why the widget doesn’t show any symbols (e.g PM, %) instead it shows periods.

Post image
9 Upvotes

r/Scriptable • • May 25 '21

Solved Weather Cal transparent background issue

Post image
16 Upvotes