Apple Shortcuts 101 || Lists and Dictionaries Part 4

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 14

  • @AChowdhury-f3m
    @AChowdhury-f3m 6 месяцев назад +1

    thank you 👍👍❤

  • @AshishKumar95
    @AshishKumar95 Год назад +1

    Great 👍

  • @axelkent
    @axelkent Год назад +1

    How do you include add multiple list items at once

    • @futureautomation2504
      @futureautomation2504  Год назад

      Yes we can do that with list as well as dictionaries. You create two three list and than in a new list whil you add a new data use select variable and select the list you want to add

    • @futureautomation2504
      @futureautomation2504  Год назад

      Same for dictionary

    • @futureautomation2504
      @futureautomation2504  Год назад

      But I think with dictionary it will be easier to access the data

  • @ilvxor
    @ilvxor Год назад

    Anyone can help me?
    I’m using a dic in shortcuts but it doesn’t work as i expected to…
    I put my Dict_1 into a repeat loop, but each time i call “Set (key) (value) in (dict)”… it creates a new Dict, so when i need the new values, the Dict_1 is full of repeated values
    DIC_1
    { “1”:”val1”, “2”:”val2”}
    Repeat each value in DIC_1
    Set repeat-index to “new val” in DIC_1
    End repeat
    Show DIC_1
    // shows the same dict without any change that happened in the loop. “Set” creates a new dict each.

    • @futureautomation2504
      @futureautomation2504  Год назад +1

      Share your email id or LinkedIn I will share you the screenshot of the shortcut actions

    • @ilvxor
      @ilvxor Год назад +1

      @@futureautomation2504 thanks, I already solved it. The solution was to call “set variable ‘MyVarDic’ “ with DIC_1 as argument, before the repeat loop, and another “Set variable ‘MyVarDic’ “ now with MyVarDic as argument inside the repeat loop… and now when I call MyVarDic back after the repeat loop, it contains all the new values i need :)

    • @futureautomation2504
      @futureautomation2504  Год назад

      That’s great thanks for the reply👍🏻

  • @valorsuperman5568
    @valorsuperman5568 7 месяцев назад

    How to do this
    1. Suppose I have 3 focus modes (eg A,B,C) & I want to assign value to A&B as 0 and C as 1
    2. Get focus
    3. if value is 1 do- x work
    Otherwise do - y work
    Please let me know how to do it using dictionary .

    • @futureautomation2504
      @futureautomation2504  7 месяцев назад

      I am not yet clear with what you want to achieve. Can you please explain a bit more thank you