Citrix Viewer

I am looking for an apple script to keep my Citrix Viewer alive when I am doing research. Currently, if the session has no activity for a set time, it will go to the Citrix sign in page. Looking for a simple script to send a keystroke every few minutes to a session, and repeat until I terminate the script. Any help with this is appreciated.

iMac 27″ 5K, macOS 10.15

Posted on Jul 31, 2020 8:00 AM

Reply
1 reply

Jul 31, 2020 10:47 AM in response to stevenjones69

Conceptually simply, but the devil is in the details, specifically how the application responds to random keystrokes, but here's a starter:


on idle
	tell application "System Events"
		keystroke return
	end tell
	return 5 * minutes
end idle


Paste this into a new Script Editor document and save it as an application with the 'Stay open' option selected.


Now when you run it, it will automatically simulate a 'return' keypress every 5 minutes until the app is quit.


You may need to refine it to target only CitrixViewer, or it may be sufficient as-is.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Citrix Viewer

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.