Help will making app run a function auto at login

Joined
Jan 17, 2023
Messages
3
Reaction score
0
not sure what the best method to achieve this is (shell, automator, AppleScript or shortcuts app) but ...
I have this program that needs to be manually run and I want to have a function of the app run automaticly everytime I login. I have no experience with AppleScrit, shells scripts, I have used Automator a few times for stuff. I lost a lot of my knowledge from a bad head injury so any help would be great.
Details: When I login to my account I want to either (1) have a keyboard shortcut automatically run (2) have the function inside the app run, which might be more complex to achieve.
 

Attachments

  • Customize.png
    Customize.png
    251.1 KB · Views: 9
  • Auto hoykey.png
    Auto hoykey.png
    285.3 KB · Views: 10
Joined
Jan 25, 2017
Messages
1,266
Reaction score
100
The applescript code to use the Command Key and down arrow combination would be something like this:

Code:
tell application "System Events"

    key code 125 using command down

end tell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top