You have most of the outline right, but the key point is that Firefox 
can be set up to open downloaded files of a given type with a particular 
program. If you set that particular program to be your script for files 
of type '.ica', then everything else should work smoothly and automatically.

To set this up, go to Tools -> Options, select the Applications tab, and 
search for Citrix something-or-other in the list, or perhaps .ICA (I 
don't have any ICA files to test, so I don't know). If you find the 
entry, click the combo box next to it and select Use other... from the 
list. Then browse to the script you created.
If you don't find the entry, open the most recent link and wait until 
Firefox pops up with its download dialog. Then select the Open with 
option and choose Other... from the list. Then, again, browse to the 
script you created. That should do the job.

On 2009-10-08 16:07, clemenss wrote:
> Thanks, this goes the right direction:
>
> Everytime I get a slightly different ICA file because it contains an
> access key. I just have to remove some 6 or 8 lines that disable the
> citrix default hotkeys so that I can use them.
>
> Now I do it manually: Log in, click on the link, chose download, not
> launch, edit downloaded ica file with notepad, remove the lines,
> launch file by double-click.
>
> There is no problem to write some filter program to do the removal
> job, but I would like to have an automatic process for the sequence
> described above.
>
> I'm not so familiar with firefox possible extensions. I thought it
> could be possible to let it detect a certain web page (my login) and
> run a script to start something in the operating system (i.e. object
> rexx script).
>
> OK, will try to find a scripting group.
>
> Regards,
>
> Clemens
>
>
>
> On Oct 8, 5:49 am, cc<[email protected]>  wrote:
>    
>> Maybe so, with a great deal of work, but JavaScript is not really
>> intended for line-by-line file editing, and Greasemonkey is not designed
>> for work with files at all.
>>
>> Your best bet is to find a good scripting language (try Python,
>> VBScript, PowerShell, or perhaps Perl -- even a batch file or shell
>> script would do the job). Create a script in your language of choice
>> that will filter the proper lines out of a file specified on its command
>> line and launch it, then tell Firefox to open .ica files with that
>> script. (Details available if you need them, or you can ask on one of
>> the scripting newsgroups/lists that supports the language you chose;
>> that's just the broad outline.)
>>
>> I assume the .ica file changes frequently (and so you need to redownload
>> it each time), but the lines you wish to remove stay more or less the same?
>>
>> On 2009-10-07 15:11, clemenss wrote:
>>
>>      
>>> Hi,
>>>        
>>      
>>> I have no idea how to achieve this: I log into a certain web server,
>>> get a link to a launch.ica citrix ica client launcher file. If I start
>>> it, it opens the citrix application window. If I download the file,
>>> edit it, remove some lines and then launch it, I have some hotkeys
>>> enabled.
>>>        
>>      
>>> I wonder if this can be achieved with help of greasemonkey.
>>>        
>>      
>>> thanks for any help,
>>>        
>>      
>>> Clemens
>>>        
>>      
>>> ____________________________________________________________________________________
>>> Introducing Branchr
>>> Super Simple Advertising
>>> http://click.lavabit.com/?pub=78&ad=0023&url=aHR0cDovL2JyYW5jaHIuY29t...
>>> ____________________________________________________________________________________
>>>        
> >
>
> ____________________________________________________________________________________
> Introducing Branchr
> Super Simple Advertising
> http://click.lavabit.com/?pub=78&ad=0023&url=aHR0cDovL2JyYW5jaHIuY29tLw==
> ____________________________________________________________________________________
>    


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to