Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Come posso modificare il menu contestuale di chrome in modo che quando clicco save as..e poi save mi lanci un programma java che legga come parametro il nome del file?

Ho scritto un programma java che dato un nome di un file lo trasforma in un altro formato.Vorrei modificare il menu contestuale del browser in modo che quando si salvi il nome della pagina parta in automatico questo programma che processi il nome del file originale

Google translate:
How can I modify the chrome context menu so that when I click save as..and then save it launches me a java program that reads the filename as a parameter?

I wrote a java program that, given a name of a file, transforms it into another format.I would like to modify the contextual menu of the browser so that when you save the name of the page this program starts automatically and processes the name of the original file


What I have tried:

Non ho abbastanza conoscienze per modificare il menu contestuale del browser per cui chiedo aiuto a chi ne sà più di me

Google translate:
I do not have enough knowledge to modify the context menu of the browser so I ask for help from those who know more than me
Posted
Updated 11-Jul-22 4:22am
v2
Comments
OriginalGriff 11-Jul-22 8:25am    
How many times do we have to tell you: This is an English language site, and we can only accept and answer questions in that language.
I have run this through Google Translate to produce a probably-good version, but you should check it and make sure it does say what you are actually asking.

As was mentioned as a comment to a previous incarnation of this question, if you can do it at all, you would have to write a browser extension for Chrome to stand any chance of doing it: Getting started - Chrome Developers[^] is your starting point.
 
Share this answer
 
I don't think you're going to get away with having your app launched after the SaveAs dialog.

I think you're going to have to supply your own SaveAs dialog to the the filename, do the save yourself, then proceed with any work you need to do with the file/filename.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900