Skip to content

Magic variable not used as input to block #24

@chrysaora-achlyos

Description

@chrysaora-achlyos

Describe the bug

In the following code from https://blog.routinehub.co/how-to-encode-images-in-base64-using-jellycuts/

import Shortcuts
selectPhoto(types: [Images], multiple: false) >> selectedImage
encode(input: selectedImage) >> base64EncodedImage
showResult(text: base64EncodedImage)

base64EncodedImage is not used as input to show results

To Reproduce

Steps to reproduce the behavior:

  1. Create a file called x.jelly, and cut and paste the above code
  2. jelly x.jelly --export --out u_x.shortcut
  3. shortcuts sign --mode anyone --input u_x.shortcut --output x.shortcut
  4. open -a Shortcuts x.shortcut
  5. click "Add Shortcut"
  6. In Shortcuts app, click on shortcut "x" to select
  7. In Shortcuts app, click on shortcut "x" to open
  8. see second and third boxes are not connected with a vertical line
Issue - Copy
  1. run the app, and see it merely displays the string "base64EncodedImage" not the actually base 64 encoding of the image as a string

Expected behavior

Below is a screen shot from AppStore-Jellycuts showing second box feeding into third box
When shortcut is run, it displays the base 64 coding, not the literal string "base64EncodedImage"

Screenshots

IMG_0112 - Copy

Information

jelly, shortcuts -sign, open, Shortcuts screenshot

  • Device: [macBook Pro, 14 inch, 2021]
  • OS: [Sonoma 14.5]
  • Jellycuts Version [??? jelly has no way to display version] (Can be found in Settings -> About)
  • Jailbroken? [No]

screen shot AppStore Jellycuts

  • Device: [iPhoneSE]
  • OS: [iOS 17.5.1]
  • Jellycuts Version [v2.3(0)]
  • Jailbroken? [Yes / No]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions