Jump to content

Use a shortcut when open an App


Recommended Posts

Hello pals,

 

I know how to open an app, but I want, when the app is open, call a shortcut. My idea, I have a text in my clipboard, after that, I open the app, call the shortcut (the app shortcut) and paste the text.

 

Thanks in advanced for your help.

Link to comment

Gracias @deanishe por la ayuda, por lo pronto coloco el proceso por si alguien pasa por la misma duda.

 

El flujo del proceso para:

  • Copiar selección
  • Abrir aplicación
  • Aplicar un shortcut que corresponde a la aplicación
  • Pegar el texto copiado y ejecutar.

 

image.png.e2ceeaa0c108d9c44dad4cb426dffc1d.png

 

1. Se agrega un Hotkey con la siguiente configuración:

 

image.png.0b2dc45d2393af72adda3b1a28aed5d1.png

  • aplicar el hotkey para el workflow
  • seleccionar el argumento (existen varios), en mi caso es: Selection in macOs, ya que yo quiero copiar y pegar el texto seleccionado.

 

2. Agrego un Launch App & Delay.

 

image.png.032e3f1fa296e028dd6d7b0eeccbebaf.png

 

El delay me ayuda en asegurar que por cualquier circunstancia que la aplicación sufra un retraso al momento de abrir, le dé un espacio para ejecutar el shortcut que corresponde a la misma aplicación.

 

3. Agrego un Dispatch Key Combo para aplicar el shortcut ya abierta la aplicación.

 

image.png.f73feb615d6537d15431de93b5668cf6.png

 

No hay mucho que hacer mas que agregar el shorcut que deseas aplicar en la aplicación abierta.

 

4. Y finalizas con un copy to clipboard.

 

image.png.f4f7c0a500690d127bebae1f582a0e6f.png

 

Esta es una de las partes, no complicadas, si no difíciles de entender a la primera, ya que el nombre no funciona mucho.

 

Aunque en primera instancia esta función nos ayuda, "a copiar texto al portapapeles", también es capaz de pegar lo que tiene el "query" guardado, es decir, el argumento que decidimos seleccionar en la primer función del workflow, como tal, esa selección ya la tenemos guardada por algún lugar, no directamente en portapapeles pero si en el flujo como una variable volátil, y al momento de llamarla con el copy to clipboard, en lugar de pegarla en el portapapeles como tal, la pegas donde quieres, con la instrucción "Automatically paste..." con esto, pasamos el texto seleccionado y pegamos donde deseemos.

 

Con lo anterior, tenemos un flujo funcional de copiado, y pegado.

Edited by vitor
Removed extraneous whitespace at end
Link to comment
On 7/2/2020 at 6:58 PM, deanishe said:

Eu não falo Português.

 

Neither do they (well, they might), which makes this humorous from a Portuguese perspective. Portugal and Spain have similar languages and cultures—so honest mistakes are bound to happen—but tend to get annoyed when people confuse the two. We share a lot of history, so it’s our version of a sibling rivalry. Just be careful to not get it mixed up when speaking to someone in person or there’s a good chance they’ll resent you for real, even if they liked you up to that point.

 

On 7/2/2020 at 6:28 PM, Erick said:

Gracias @deanishe por la ayuda, por lo pronto coloco el proceso por si alguien pasa por la misma duda.

 

They’re thanking you for the help, and explaining their process in case someone else stumbles here with the same question.

Link to comment
9 hours ago, vitor said:

Neither do they (well, they might), which makes this humorous from a Portuguese perspective.

 

Yeah, I know it's Spanish. I wrote that I don't speak Portuguese for the same reason I said that "dente azul" is Spanish.

 

9 hours ago, vitor said:

They’re thanking you for the help, and explaining their process in case someone else stumbles here with the same question.

 

Thanks, I know. I know enough French and Latin to get the gist of what they're saying.

Link to comment
2 hours ago, deanishe said:

 

Yeah, I know it's Spanish. I wrote that I don't speak Portuguese for the same reason I said that "dente azul" is Spanish.

 

 

Thanks, I know. I know enough French and Latin to get the gist of what they're saying.

 

Whats up, @vitor and @deanishe, all is ok. Thanks for your help, and don't bother me any comment. 

 

I am newbie here and really appreciate all your help. See you in my next doubt.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...