Associate a file extension with my executable, how to receive filename?

Hi
I'm using flaslh profresional to create this application:   Edit_epl.exe
I install the application.
I make a file association extension because I want to do this:  when double-click on a file with the extension ".elp" then runs Edit_epl.exe.
   example doubleclick on:  "my_sample.epl"  ---> then runs Edit_eplp.exe.   so far,so good.  
My question is how to know its filename (my_sample.epl) as "parameter" inside "Edit_eplp.exe"
Can anyone help me?
Thanks

I solve it!
Question:
I want to click on a textFile  for example  hello.txt, with the content:   "My name is Fernando"
1 - create an application   My_edit_txt.exe   (with only one text_field, MY TEXT)
2 - install the application.
3-  associate the extension txt  to my  editor: My_edit_txt.exe
4-  when I click on hello.txt,
5-  the system launches -> My_edit_txt.exe (so far works ok)
6- then I dont know:  Inside My_edit_txt.exe:
Which file clicked the user?
Resolution:
   NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
package silbo.esment.general.base_juegos
          import flash.desktop.NativeApplication;
          import flash.display.MovieClip;
          import flash.events.InvokeEvent;
          import flash.text.TextField;
          public class Clip_editor_epl extends MovieClip
                    public var t_texto:TextField;
                    public function Clip_editor_epl()
                                   super();
                                   NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke);
                    function onInvoke(event:InvokeEvent):void {
                              mitrace("on invoke");
                              mitrace("arg="+event.arguments);
                              mitrace("file to open:"+event.arguments[0]);
                    function mitrace(trozo){
                              if(trozo==null){
                                        trozo="";
                              t_texto.appendText(trozo+"\n");
          }//clase

Similar Messages

  • Associate .indd file extension with CS6

    I have not been able to associate the file extension with CS6 in Windows Vista. The .indd extension is already taken by another application, yet when I try to change it, it does not save.

    While highly unlikely as the reason, Vista was not tested and is not supported for CS6.
    What “other application” has the INDD association? Is it a different version of InDesign? Did you install the other version AFTER CS6?
    Bob

  • XML form: associate the file extension with an image

    Hello!
    I am creating some XML forms and i have to ulpoad a file.This isn´t a problem, but in RenderListItem I have to associate the file extension with an image(For example .doc with Word icon).Is it possible to do this? Thanks

    Hello ,
    I'm sorry, but this is not covered within the standart. You have the opportunity to do so in normal LayoutSets but not within a link in XML Forms. Maybe it's a workaround for you to provide a image selection for the author in the edit form, to select such an image manualy.
    hope this helps,
    Axel
    Please consider rewarding points to helpful answers on SDN

  • Plz help , how do i associate a file extension with a j2me application

    i need to associate a file extension (.gpj) with my j2me application. in other words when i open a .gpj file i need the j2me application to launch.
    thankyou

    To accomplish this your device need to have an implementation of the Content Handler API (JSR 211)
    1. The class that handles the file extension should implement the ContentListener Interface
    2. you should register the listener to be notified of new requests
    ContentHandlerServer myhandler=Registry.forClass(this.getClass().getName());
    myhandler.setListener(this);3.implement the invocationNotify() method of the ContentListener interface to handle this file extension
    Cheers
    and don't forget your (generous) dukes ;D

  • How to associate other file extension with text/xml

    Hi,
    I found that I could only load files into XDB via ftp when they had the file extension ".xml". Why is this?
    Thanks
    Pete

    The information as to which file extensions are associated with which mime-types is stored in the xdbconfig.file. You can add an entry using the following code
    connect system/oracle as sysdba
    call dbms_xdb.cfg_update
           updatexml
             dbms_xdb.cfg_get(),
             '/xdbconfig/sysconfig/protocolconfig/common/extension-mappings/mime-mappings',
             xmlelement
               "mime-mappings",
               xmlconcat
                 extract
                   dbms_xdb.cfg_get(),
                   '/xdbconfig/sysconfig/protocolconfig/common/extension-mappings/mime-mappings/mime-mapping'
                 xmltype
                   '<mime-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
                <extension>rdf</extension>
                <mime-type>text/xml</mime-type>
                </mime-mapping>'
    commit
    call dbms_xdb.cfg_refresh()
    set long 1000000
    set pagesize 0
    select dbms_xdb.cfg_get() from dual
    quit

  • Computer associates .dwt file extension with AutoCAD (valid) - not DW Template. [was: roberth11148500]

    I have attempted unsuccessfully to create a webpage template using Dreamweaver CS6. On investigation I found that my computer was interpreting the dwt. suffix as an AutoCAD template rather than a Dreamweaver template.  I do have AutoCAD programmes on my computer and in that software dwt. is a valid suffix for templates.  Please someone kindly tell me how to overcome this problem?

    One way is to associate the extension with the relevant program as in Choose the apps Windows uses by default - Windows Help
    Another way is to right click the template file and choose Open With->Dreamweaver
    A third way, if you are running a PHP server is to give the temple a PHP extension as in myTemplate.dwt.php

  • Associate file extension with air app on Android

    Hi,
    I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
    In the .xml-file for the app, under the <android> tag I have written:
    <activity>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />
                <data android:pathPattern=".*\\.csml" />
                <data android:host="*" />
            </intent-filter>
        </activity>
    Does anyone have an idea how this could be solved?
    Thanks in advance
    Jens

    If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
    See also:
    http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
    http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension

  • Associating file types with an executable

    I would like to be able to associate a file type with my executable,
    and have a specific file load into my executable when that file is
    double clicked (similar to how Excel opens an xls file when that xls
    file is double clicked). Is there any way to do this in labview? The
    file is a TDMS file.
    Thanks,
     Rodrigo

    You should be able to do this with the application->app.arguments property.
    This property gives you the command line arguments (like in c the args[] on the main function).
    This returns a string array, when you use an open with or drag a doc into your build (check the pass command line arguments under the advanced builds options page) this property will return a string array, the second element is the path to the doccument.  In the beginning of your processor/display exe check if this is a valid file and execute the code as desigend.  A state machine architecture is nice fvor this, add a stat called check command line and if this is valid jump into your processing state, otherwise run your program as expected.  You can retrofit any processing application with this approach.  As for locking the associations, you can usually do this by giving your docs a unique extension (dont use an existing extension like .txt, .exe, .vi ...) Click open with, browse for your application, after select always use this application.
    This has worked for me in the past.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Possible to associate file extension with webstarted app?

    A common property of microsoft apps is to associate file extensions with specifiec apps.
    For example, when you double click on a .xl file, Excel is launched.
    Can the same kind of thing be done for Webstarted apps? If so how?

    I have an idea on how to do this, but I have not tried it.
    1. On first launch, the application does an "install" before starting the main screen.
    2. The install checks the OS, and writes a .sh or .bat file to disk. That batch file runs the command-line to start the application. Hmm, but how does it pass along $*?
    3. The install associates the proper file extension with the .bat file, and/or with the unix file manager software, and/or with IE, Netscape, and Mozilla.
    Then, when a user clicks on a link to a document, or a file in the windows explorer, then the JWS application should lanch and load the file(s).

  • Associate a File Type with a JAR

    How do I get XP to associate a file type with a JAR application? Since the extension on the application is JAR, I get a message from XP that I can't associate with it since it is not exe.

    Look at the association for the JAR extension, you'll find that it uses javaw.exe and the "open" action is mapped to some command line involving javaw.exe and %1 which represents the jar file to be executed. Now, for your extension make a very similar setup, only your "open" command line will look something like this:
    "C:\...\javaw.exe" -jar YourSpecialJar.jar "%1" %*
    That command line runs your jar file and passes the file being "opened" to the command line as the first parameter. (I don't know what the %* does but it's in the command line for the jar extension.)

  • Toggle file extension with Automator

    I am looking for the easiest way to automate toggling a file extension between two options. It needs to be the easiest possible solution as it is intended for Architects (specifically working in Revit) who are not the most technically savvy users.
    My first thought was to use Hazel. Something along the lines of watching the folder in question (all the files that need to be toggled are in a single folder and its subfolders) and activate Hazel when the label changes to red. the rules would change an RFT file to RFA and RFA to RFT and put the label back to none. Sadly, I don't think I can change the label on Windows files, so that doesn't work. And the delay waiting for Hazel to process would be frustrating.
    So then I started looking at Automator, and I can easily do one or the other, but I am having trouble with getting a conditional to work. My workflow right now will Filter by one extension and Replace Text in the Extension Only with the opposite. What I want is to filter by RFT or RFA and then do one of two Renames depending on the value of the Extension, but passing the full file path on to the Rename.
    I know I can do this in AppleScript, but ideally I would like to make it work in Automator as this is an envoronment where more of the target audience might experiment and expand on the idea, whereas writing code is unlikely to be something of interest.
    Any help is greatly appreciated!
    Gordon

    The httpUploadForm (Oracle JSP) tag just generates an HTML form
    which has a file upload field:
    <form action="untitled2.jsp"
    ENCTYPE="multipart/form-data" method=POST>
    <INPUT TYPE="FILE" NAME="File" SIZE="20" MAXLENGTH="80" >
    <br><INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Send"> </form>
    It is up to the browser on how to present a file dialog. I don't think you can restrict it from the form...
    By the way, you can get contextual help by right clicking on the httpUploadForm tag (or any tag) on the Component Palette and selecting help...

  • Problem setting file extension with jspc

    I'm using xhtml which it appears the Jasper compiler (Tomcat 5.5) can't handle. It seems to only recognize files with the jsp and jspx extensions. Is there a way (either on the command line or via the Ant task) to set this? What is the proper way of pre-compiling these pages?
    Thanks in advance.
    Scott Czadzeck

    Hi,
    You can restrict them to save in any other format by making the check.
    Simply add listner for the Event.OPEN on the fileReference and inside this check for your allowed extension,if the extension is not what you want then
    simply right a line there like:-
    fileReference.cancel();
    And addtionally you can give any alert that your file should be of that particular extension.
    with Regards,
    Shardul

  • Impossible to associate a file .swf with flashplayer

    Hello,
    I have a file. Swf on my hard drive, impossible to read because I can not associate the file. Swf with the Flash player.
    I have uninstalled and reinstalled the flashPlayer without success.
    Do you have a solution, thank you.
    Gilles

    Hey,
    I can not find flashplayer.exe in XP sp3, where can it be hidden ?
    Gilles

  • Displayed icon for audio files changed with snow install - how to I restore

    After installing 10.6, the icons displayed on audio files (aiff, mp3, etc.) became a black square with a music symbol in it when it should be the default application icon or quicktime icon. The icon in the upper left corner of the info window is correct, but the hideous square displays. How do I restore to the correct icon?

    I have the same problem. I produce a daily podcast ("Mister Ron's Basement") and I have almost 1500 episodes on my hard drives in both the original recordings (aiff files done with Sound Studio) and mp3 versions. They used to have different icons, and even though the aiff files will still open in Sound Studio automatically, they all have the same black square icon. Used to be, at least you'd get an icon that had the word with the file type on it, but no more. I have changed many of the back ones with Candy Bar, after sorting them by file type, but every new file I create, I have to go to get info and change the icon by hand. Not very professional, and a waste of my time. Can I expect sound icon differentiation to be returned to the Macintosh Operating System at some time in the near future?

  • Support for file extensions with more than three characters when saving - I want my FLAC!

    Why does the Wave Editor still drop characters from filenames with more than three character extensions when you save a file? But since -opening- a FLAC file with an extension of ".flac" doesn't get chopped to ".fla", why does Audition still chop off the extra character when -saving-?
    It gets old quickly when you have to save, close and reopen files in order to get Audition's Multitrack editor to play nice and be able to find files when you reopen the Session.
    Given that the FLAC filter is open source, I may just have to modify the code and recompile it to force a save to ".fla"... But of course, ".fla" is a Flash file extension, which I also use, so that is a crude hack for me.

    Hi bro...
    use in BYTE mode in place of in TEXT mode. and at the end of each line give some special charactor so as to distinguish between lines.This is effected  by unicode check too
    regards
    Edited by: Mohit Kumar on Feb 9, 2009 9:44 AM

Maybe you are looking for

  • Where are the help files?, Where are the help files?

    Where are the help files for iPhoto? When I am in any part of iPhoto and click on "Help," I get a blank page.

  • Transfer word documents from Lumia 520 to mac?

    Is there an app to transfer word documents composed on the lumia 520 in office to mac? I only see apps for enabling photo/video and music transfers from 520 to mac. I've been to the mac app store and don't see an app to transfer word documents from w

  • Sorry to ask about Invalid Cursor State again...

    I am getting this error which is really frustrating because I can't figure out why it is happening. I am connecting to a csv file using jdbc:odbc Microsoft Text Driver. I instantiate the ReadFortySite class in the GUI class.I then click on a jList in

  • In Java,how can I get remote oracle server's system time using a XAOracle datasource

    I want to get remote oracle server's system time,for example,I use a TxDataSource: DRIVER className:weblogic.jdbc.oci.xa.XADataSource URL:jdbc:weblogic:oracle:lanhaibo JNDI Name: the following is the code which shows the exception that: sqlexception:

  • [Resolved] Arch ISO won't boot on Mac

    Hi! I have Ubuntu, XP and OsX up and running on a MacBook Pro from late 2007 (Intel Core 2 Duo); works with reFit. Cause on VM my Arch runs like Bolt, i want to replace Ubuntu for Arch! I've read the UEFI and EFI entrys on the wiki, but don't get the