amebalabs / TRex

Copy any text on your screen, stop retyping.
https://trex.ameba.co
MIT License
1.24k stars 40 forks source link

Apple Shortcuts input #31

Open yene opened 7 months ago

yene commented 7 months ago

Hi, I am unable to Apple Shortcuts working. I get the error "Unable to run. The input of the shortcut could not be processed." Could you please show an example on how to use it.

Thank you for your time.

shot 2024-02-18 at 18 09 33
melonamin commented 7 months ago

Here is an example Shortcut, it will show captured text in a notification.

yene commented 7 months ago

@melonamin the provided example gives the same error. trex: Version 1.6.0 (104) macos: 14.3.1 (23D60)

melonamin commented 7 months ago

trex: Version 1.6.0 (104)

Interesting, I can reproduce it on 1.7.0 but not on 1.6.0, looking into it

yene commented 7 months ago

If it works on your machine but not mine, it is probably sandbox entitlement. How do you execute the shortcuts?

melonamin commented 6 months ago

How do you execute the shortcuts?

/usr/bin/shortcuts run <shortcut name> -i <input>

As a quick test, can you try launching the shortcut from TRex Settings? Press "Play" button:

Screenshot 2024-03-27 at 10 34 24