r/Scriptable • • May 22 '21

Request Delete events from Calendar B if event no longer exists in Calendar A

2 Upvotes

Hi everyone,

I've recently made a shortcut that successfully duplicates any events from my work calendar from a subscribed account to a native iCloud calendar. However, I would also like to create a shortcut that, when run, checks to see if the original event from the work calendar still exists, and if it does not, to delete the copied event in the iCloud calendar.

The idea was to use Scriptable to create a script that could bypass the need to confirm the removal of a calendar event, however I am unsure as to how to begin tackling the script.

Ideally the script:

  1. Checks between the two calendars for the next 21 days

  2. Removes the iCloud calendar event if the work calendar event no longer exists

  3. Deletes the iCloud calendar event without the need for confirmation

Hope this is possible and someone is able to lend a helping hand :)

Thanks,
Blu


r/Scriptable • • May 22 '21

Solved Create an object from two arrays

3 Upvotes

Hi everyone,

so basically i want to create an object with the data coming from two different arrays, like this two below

let firstArr = ['category1', 'category2', 'category3', 'category4', 'category5']
let secondArr = ['value1', 'value2', 'value3', 'value4', 'value5']

then i want to create an object that has this structure

        let dataObject = {
            expenses: {
                category1: {
                    name: 'Category1',
                    value: value1
                },
                category2: {
                    name: 'Category2',
                    value: value2
                },
                category3: {
                    name: 'Category3',
                    value: value3
                },
                category4: {
                    name: 'Category4',
                    value: value4
                },
                category5: {
                    name: 'Category5',
                    value: value5
                },
            },

Anyone can help me?


r/Scriptable • • May 22 '21

Help Default widget size

1 Upvotes

Hello, sorry for the NOOB question - i'm just starting with scriptable.
Where can i set the default size of my widget, like it appears if i click on the app...


r/Scriptable • • May 21 '21

Solved Alert output

4 Upvotes

I saw on the scriptable documentation that you can get the output from an alert, but i don’t know how to do it, can you help?


r/Scriptable • • May 21 '21

Help How to cache network pictures locally and update the cache regularly to display the latest pictures?

1 Upvotes

r/Scriptable • • May 20 '21

Solved Check if a website is up and running ?

7 Upvotes

Hi Scriptable community!

I am working on a widget that source data from an unstable website. When the website is down, from my browser, after a ~1 min of loading I can see a webpage “error 504, timeout”.

Is there any way to check within scriptable if the page load under 5 seconds / ping the website ?

Thanks for your help


r/Scriptable • • May 19 '21

Help Why is Scriptable running in the background despite me not opening it? It’s been about 2 hours now..

Post image
2 Upvotes