• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple copies of Citrix running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple copies of Citrix running


  • Subject: Re: Multiple copies of Citrix running
  • From: Philip Aker <email@hidden>
  • Date: Fri, 25 May 2007 01:11:38 -0700

On 2007-05-24, at 10:46:51, Stockly, Ed wrote:

I have a script that is using System Events to puppet the user interface in Citrix. Citrix mounts a remote version of windows on a mac.

The script is launched from the Mac OS scripts menu, and works fine when there is only one version of Citrix running. However, with Citrix it is possible to launch multiple versions of the applications and each version appears as a separate process, but with the same process name.

The problem is the command

tell application "Citrix ICA Client" to activate

It always brings the Citrix process that was first launched to the front, which may not be the one the user is trying work with.

Is it possible to first identify which Citrix Process is frontmost and address the activate command to that process?

Hi Ed,

If it's at all possible, one way would be to use a do shell script:

ps -axwwopid,command|grep 'Citrix ICA Client'

to get the path of the clients and:

tell application "System Events" to {name, unix id} of (item 1 of (every process whose frontmost is true))

to get the front process pid.

then you should be able to grab the path of the desired client out of the 'ps' list by using the pid obtained from System Events.

Depending on how these processes are launched, it could be impossible to get the one you need.

HTH,

Philip Aker
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Multiple copies of Citrix running (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: How to automatically acknowledge a dialog
  • Next by Date: Re: Multiple copies of Citrix running
  • Previous by thread: Multiple copies of Citrix running
  • Next by thread: Re: Multiple copies of Citrix running
  • Index(es):
    • Date
    • Thread