Questions tagged [scriptable]

42 questions
1
vote
1 answer

Rhino Evaluating a javascript object in Java

Im quite new to Rhino and trying to convert a javascript object to a java object but unable to do so. It doesnt seem to evaluate properly. The javascript that I have is, var myObject = new Object(); myObject.string1 = 'Hello'; myObject.string2 =…
nixgadget
  • 6,983
  • 16
  • 70
  • 103
0
votes
1 answer

Scriptable Plugin, Javascript returns undefined

Im trying to write a scritable plugin and I am using mozilla's example below as my guide, as well as looking at firebreath to see how it wraps the code. I am getting stuck on the return value to javascript. Mozilla scriptable example When…
hapyfishrmn
  • 177
  • 2
  • 21
0
votes
4 answers

Python 'int' object is not subscriptable

Im trying to read a file and make sure that each value is in order. I dont think im converting the string into the integer correctly. Here is some of my code. I am also trying to use flags. fileName = input("What file name? ") infile =…
user1021128
  • 1
  • 1
  • 1
0
votes
0 answers

Copying events from iOS Calendar to Reminder using Scriptable

I’m new to Scriptable and iOS programming. I’ve created the following script that should copy every event in my calendar to reminder. This code fetches calendar events within the next week and copies them to reminders while handling duplicates based…
L.Vezzani
  • 55
  • 5
0
votes
1 answer

INT values from website HTML with "pure" JavaScript > exract and put into array

I want to modify my existing Scriptable widget for iOS, showing a so called "blood groups barometer", meaning the current status of blood reserves at the German Red Cross and Swiss Red Cross. There is a private blood provider, called Haema - and I…
bivvo
  • 61
  • 6
0
votes
0 answers

How to remove a scriptable object from a list of scriptable objects?

I'm using Unity's scriptable objects to create inventory items and inventory containers. It's worked out very well so far but I've been unsuccessful in finding a method to remove an inventory item from the container list completely. I have been able…
0
votes
0 answers

Scripting option for CLI utilizing .NET System.Commandline

Just now starting to implement a command line interface utilizing the new System.Commandline package and using the approach of the SCL example project. Which I really like, thanks for that. The client more or less maps the console input to gRPC…
0
votes
1 answer

JSON from website with "pure" JavaScript > exract and put into variables

I want to create a new Scriptable widget for iOS, showing a so called "blood groups barometer", meaning the current status of blood reserves at the German Red Cross. I have found this website, where the status is given in the source code, in the…
bivvo
  • 61
  • 6
0
votes
3 answers

SyntaxError: Unexpected token " in JSON at position 0 in stringify

I have seen this question asked a few times here but never with the “ character. For clarification this is not my code that is putting out the error, this is what I get back from an api. My first try: I use https://reqbin.com/ and the request works…
Chis
  • 9
  • 1
  • 4
0
votes
1 answer

Unable to get DOM element that is loaded dynamically

I have some entry level JavaScript experience, and I’ve been trying to get a script to login and click some buttons on a website, but have reached a tough hurdle where I am unable to find an element using document.getElementByID() or…
Alex James
  • 21
  • 4
0
votes
1 answer

Sending request with scriptable app to Shelly cloud

After connecting and wiring the Shelly2.5 with my shutter, trying to connect it with Siri. Decided to do this with Scriptable app and then connect Siri commands to it, so it will run. Currently have an issue to send the request from the Scriptable…
hod caspi
  • 826
  • 2
  • 10
  • 17
0
votes
2 answers

How to convert Base64 to Image in Scriptable App

I want to convert the Base64 I get from an API into an image in the iOS scriptable app. Here is my current code: let image = Image.data(Data.fromBase64String(response.icon)) How could I convert the base64 into an image? The error: 2021-08-19…
Godz
  • 1
  • 1
  • 4
0
votes
0 answers

reference error cant find variable $ | Siri shortcut & scriptable

I have a website (not my own) to earn bitcoins every 60 min. So i have to click on roll button every 60 min. So i made a Siri shortcut to do it without opening Safari with scriptable. I have the code but when I put the code on Google Chrome Console…
0
votes
1 answer

Login to PremiumSim with Scriptable iOS

I want to create a widget for iOS that shows my mobile traffic usage. To create this widget I want to use Scriptable I tried to create the needed Http GET and POST requests to login into my account and than to read the needed values, but I failed…
TheBrain
  • 685
  • 6
  • 26
0
votes
1 answer

Provide an argument from Siri voice input to scriptable or pythonista script?

Does apple yet allow third party apps, like scriptable (javascript) or pythonista (python) to accept arguments provided via Siri voice commands, and if so, how can we access such arguments in a scriptable (javascript) script? If not, is there any…
stevec
  • 41,291
  • 27
  • 223
  • 311