How to make a dialog box for a user to choose a file from disk

Hi there
Is it possible to make a dialog box, for a photoshop user, to choose a txt file, to be process by my javascript ?
I have a txt file with all the names and locations of psd files i want to process by photoshop. I have ex. 100 out of a folder with 250 images.
If anyone have a shot "code sample" how to select a file - i will be happy.
/T

Here is an example of selecting a text file...
var dlg=
"dialog{text:'Script Interface',bounds:[100,100,500,220],"+
"testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
"Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
"statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
"Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
"button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
var win = new Window(dlg,'test');
win.center();
win.testFile.enabled=false;
win.Browse.onClick = function() {
selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
  if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
win.Process.onClick = function() {
if(win.testFile.text == '') {
  alert("No text file has been selected!");
  return;
win.close(1);
selectedFile.execute();
win.show();

Similar Messages

  • How to make warehouse field inactive for all users in all documents autom.

    Hi All,
    Can anyone pls tell me "**how to make warehouse field inactive for all users in all documents without having to do it through form setting** "for each and every user. It should be visible but inactive
    Thanks & Regards,
    Mukesh Agrawal

    Hi,
    As a work around create a warehouse SelectWH and map the mandatory acoounts as a On hold account(in chart of accounts).So there will not be any posting on this account.
    And set this warehouse as default warehouse for all users.
    So without selecting the appropriate warehouse the user can not add the document.
    I think this might resolve you issue.

  • InDesign "Save As" dialog box for every operation in INDB book file; updating page numbers, etc.

    So I haven't used INDB files in awhile in InDesign, and today was the first time I attempted to adjust an old INDB (created originally with CS5).  For every operation of adjusting the book file, such as updating page/section number or adding/removing an INDD file I get a Save As dialog box for each constiuent INDD file.  This is quite annoying since the book has lots of INDDs, and I have to click through the tedious save as with each.  I previously worked with INDBs in CS5, and never encountered this, there was no need to save each INDD in the book just to update the page numbers.  I tried creating a new INDB in CS5.5 thinking that maybe it was because I was working from a file created with an older version of InDesign.  Does anyone know if there is a way to suppress the Save As dialog?  Another thing I noticed that is supremely frustrating is that this new build of InDesign doesn't default to saving the file in its original location, and I have unwittingly ended up saving files in other places, only to later realize it.  I am using InDesign CS5.5 Ver. 7.5.2 on Mac OSX 10.7.3  Any help is greatly appreciated. 

    It will only happen once (and frankly, what you are doing is a very bad idea).
    When you open the old book in CS5, you are converting to the new format. All of the legacy files also need to be converted, even if added to a new book in CS5.5, hence the Save As since ID will not overwrite the old versions until you tell it to (and that's the bad idea). I strongly recommend (though it's too late for any books you've already updated and overwritten) that you either continue to edit in the old version, or that you take the time to open each file in the original version if it's older than CS5, then export to interchange format (.inx or .idml, depending on version), open those files in CS5.5, save with new names so you don't overwrite anything, then add to a new book and proceed.
    One of the reasons I recommend this seemingly time-consuming approach is that there are too many reports (another one yesterday) of some sort of problem that pops up late in the editing cycle when converting legacy files to CS5/5.5 by opening them directly and saving. This is a belt and suspenders insurance approach, and is far less labor intensive than starting over, which might end up being your other option down the road if something goes wrong.

  • How to make saved IR available for all users

    Hi,
    I've created IR and saved it to several tabs based on search conditions.
    But they're only visible for developers.
    How to make these tabs available for all end-users ?
    Does version 4.0 support this option ?
    Thank you!

    Hi
    At present this feature is not included, although I believe it may be in 4.0. Many people have provided workarounds for this. None of which I have tried. I cannot find the original thread but here is a solution from a chap called Ruud
    >
    One way to share your saved reports with others is to 'Publish' your report settings to a few intermediate tables in your application and have other users 'Import' your settings from there. The reason for using intermediate tables is so that not all your saved reports need to be 'visible' to other users (only those that you've chosen to publish).
    Basically you have available the following views and package calls that any APEX user can access:-
    - flows_030100.apex_application_pages (all application pages)
    - flows_030100.apex_application_page_ir_rpt (all saved reports - inclusing defaults and all user saved reports)
    - flows_030100.apex_application_page_ir_cond (the associated conditions/filters for above saved reports)
    - wwv_flow_api.create_worksheet_rpt (package procedure that creates a new saved report)
    - wwv_flow_api.create_worksheet_condition (package procedure that creates a condition/filter for above saved report)
    The way I've done it is that I've created 2 tables in my application schema that are straightforward clones of the 2 above views.
    CREATE TABLE user_report_settings AS SELECT * FROM flows_030100.apex_application_page_ir_rpt;
    CREATE TABLE user_report_conditions AS SELECT * FROM flows_030100.apex_application_page_ir_cond;
    ( NB. I deleted any contents that may have come across to make sure we start with a clean slate. )
    These two tables will act as my 'repository'.
    To simplify matters I've also created 2 views that look at the same APEX views.
    CREATE OR REPLACE VIEW v_report_settings AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_rpt r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND r.session_id IS NULL
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    CREATE OR REPLACE VIEW v_report_conditions AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_cond r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    I then built 2 screens:-
    1) Publish Report Settings
    This shows 2 report regions:-
    - Region 1 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT apex_item.checkbox ( 1, report_id ) " ",
    page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY page_name,
    report_name
    Each row has a checkbox to select the required settings to publish.
    The region has a button called PUBLISH (with associated process) that when pressed will copy the settings from
    V_REPORT_SETTINGS (and V_REPORT_CONDITIONS) into USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    - Region 2 - Shows a list of already published reports in table USER_REPORT_SETTINGS (again filtered for your user)
    SELECT apex_item.checkbox ( 10, s.report_id ) " ",
    m.label,
    s.report_name
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user = :APP_USER
    AND ( s.page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY m.label,
    s.report_name
    Each row has a checkbox to select a setting that you would like to delete from the repository.
    The region has a button called DELETE (with associated process) that when pressed will remove the selected
    rows from USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    NB: P27_REPORT is a "Select List With Submit" to filter the required report page first.
    Table MENU is my application menu table where I store my menu/pages info.
    2) Import Report Settings
    This again shows 2 report regions:-
    - Region 1 - Shows a list of all published reports in table USER_REPORT_SETTINGS (filtered to show only other users saved reports)
    SELECT apex_item.checkbox ( 1, s.report_id ) " ",
    m.label,
    s.report_name,
    s.application_user
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user :APP_USER
    AND ( s.page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY m.label,
    s.report_name,
    s.application_user
    Each row has a checkbox to select the setting(s) that you would like to import from the repository.
    The region has one button called IMPORT that when pressed will import the selected settings.
    It does this by using the 2 above mentioned package procedure to create a new saved report for you
    with the information form the repository. Be careful to match the right column with the right procedure
    parameter and to 'reverse' any DECODEs that the view has.
    - Region 2 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY page_name,
    report_name
    This is only needed to give you some feedback as to whether the import succeeded.
    A few proviso's:-
    a) I'm sure there's a better way to do all this but this works for me :-)
    b) This does not work for Computations! I have not found an API call to create computations.
    They will simply not come across into the repository.
    c) If you import the same settings twice I've made it so that the name is suffixed with (2), (3) etc.
    I did not find a way to update existing report settings. You can only create new ones.
    d) Make sure you refer to your saved reports by name, not ID, when matching APEX stored reports and the
    reports in your repository as the ID numbers may change if you re-import an application or if you
    auto-generate your screens/reports (as I do).
    Ruud
    >
    To me this is a bit too much of a hack and I personally wouldn't implement it - it's just an example to show it can be done.
    Also if you look here in the help in APEX Home > Adding Application Components > Creating Reports > Editing Interactive Reports
    ...and go to the last paragraph, you can embed predicates in the URL.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)
    Edited by: Munky on Jul 30, 2009 8:03 AM

  • How to force a dialog box for a network share lot BTMM login

    Once OSX has remembered a network share with User and PW, I cannot find a way to force a dialog box to appear, that allow manual entry of a different User and PW.  This is the case whether for a LAN device or WAN device via Back to My Mac (BTMM.)  This is driving me out of my mind 
    The issue is particularly acute, because sometimes BTMM won't connect with the stored info, but is fine if one can just type in the User and PW. 

    Please give me some pointers.
    As I was searching for solutions for this problem, I was told by someone that I could deploy my jsp's and servlets in iPlanet instead of the web container in my app server. That way, when I invoke invalidate() on the HttpSession object, the session would be destroyed and the login information would be gone with it. So user will get reprompted next time. However, I've never deployed anything but static contents in iPlanet, I don't know how and if it's appropiate to deploy dynamic stuff in there. Any thoughts?

  • How to make yellow dialog box not come up when I mouse over tabs?

    I hate the little small yellow background colored dialog box that pops up when you mouse over tabs on Firefox on Mac.
    The reason why this is an in convenience on the Firefox in Mac is when a dialog box comes up and you minimize Firefox the dialog box stays there on the screen, so you have to bring Firefox to the front and then mouse over it til the box go's away, and then finally you can minimize Firefox without having the dialog box stay on your screen.
    To negate this problem I want to know if their is a way for me to disable that dialog box from coming up at all. It also comes up when I mouse over my all in one sidebar add on and I have noticed it when you mouseover links on certain sites, like in Pandora when I am mousing over the different artists in my list the little box comes up, again it's not needed and very annoying.

    you must modify '''browser.chrome.toolbar_tips'''
    type in the address bar '''about:config'''
    then press the button''' i'll be careful i promise'''
    then type in the bar '''browser.chrome.toolbar_tips'''
    then '''Double-click''' on it, to make it''' false'''
    exit firefox and restart-it.
    See for more info : [http://kb.mozillazine.org/Browser.chrome.toolbar_tips Browser.chrome.toolbar tips ]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How to make Steam library available for all users

    Hello!
    Can someone tell me - how to make my Steam library available to ALL users of my iMac without sharing a password?
    Or any other program of my account?

    Hard drive level Users/Sharing - Do a Get Info on the folder (command - I) and set permissions to everyone read/write, then click the gear at the bottom - Apply to Enclosed Items.

  • How to add a dialog box for document instructions?

    I am creating a form in Adobe Acrobat X Pro.  This form has instructions that go along with it and I was wondering if I could add a box that appears when the document is opened? 

    Okay.  I tried that and it looks too much like an error message.  Can I get like the action wizard to automatically appear when the document is opened?  Or some other kind of window?
    Thanks for your assistance,
    Sara

  • How do I log off the current user and bring back the authentication dialog box for another user to log in on Iplanet webserver?

    I am using JSP.

    Hey there Mike Novack,
    My understanding is that she replaced the Windows Login with a fingerprint swipe correct? I found some instructions surrounding this here
    So that we can best direct you through the process what operating system are you using on your T61?
    If you are using Windows 7, try going to the control panel, then to the biometric devices, click the option to change your biometric device settings and you should be able to disable it there.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • How to make signature field work for reader users? Security settings change when doc is extended???

    I've been struggling to correct a problem all week and am at my wits end. Customer service was no help as the person I spoke with could barely speak english let alone understand the problem as I explained it to him. Hoping someone here can provide some insight, here's the issue:
    I'm using a Windows 7 Professional OS. I created a Microsoft Word doc and used Adobe Acrobat XI Standard to create a form from it. It automatically detected the fields, which includes a signature field. I went through fixed it all up how it needed to be and did "save as other - reader extended pdf - enable forms fill in & save in reader".
    The document is a report that will be sent to a small number of people that have to fill it out, digitally sign and return and I'm assuming that most if not all of them will open the document using the free Adobe Reader. So I thought extending it is what I needed to do to make sure they could fill it out, save it to their computer if need be, and also sign digitally. The signature field was automatically added in by acrobat for me and I did not change the properties of it at all except to add a border.
    When I open the form in Reader (also XI) I can fill out all the fields, save it... but not sign it. The security settings say signing is not allowed even though I went back to the original pdf form and the security settings on it say allowed for everything. I don't know how to fix this... please help!!!
    I've attached some screen shots but can include more if needed...

    I don't have the Enable More Tools option under Reader Extended PDF. I just tried to download the XI Pro trial version and it won't complete installation because of the standard version I already have. Any advice or workarounds you know of? Going to the boss for $$ to upgrade to Pro is what I'll consider my last resort if the issue is truly that I have to use Pro to enable more tools for reader.... I appreciate your reply though. I sat here all day yesterday fingers crossed that SOMEONE would give it a go!

  • How to make ads/banners published for an Adserver (only an HTML file with all js files and images linked)

    Hi everyone!
    I'm hoping someone can solve this.
    I have made some ads in Edge Animate CC and need to put them on an Adserver....
    but the adserver company only accept the HTML code... only extra files or images.
    This means linking the images and the .js files to URLs. I have done it with the images but are hitting a wall with the _edge.js
    I added the script in the HTML to load the _edge.js. (<script src="http://www.christianlaursen.net/ADS/WL_AD_160x600_edge.js"></script>)
    But I get certain errors in the console which I believe relates to how Edge tries to load _edge.js locally (even if i load it separately)
    Uncaught ReferenceError: AdobeEdge is not defined                    WL_AD_160x600_edge.js:3
    Failed to load resource: net::ERR_FILE_NOT_FOUND                 file:///C:/Users/claursen/Desktop/WL_AD_160x600_edge.js
    Uncaught TypeError: Cannot read property 'stage' of undefined    edge.5.0.1.min.js:133
    Uncaught TypeError: Cannot read property 'stage' of undefined    edge.5.0.1.min.js:126
    This is as far as I got. I am not sure 100% the script is being loaded correctly, but as the console is complaining about the local file, I have
    a feeling it's with Edge's attempt to load it locally that causing it to stop.
    Anyone doing Ads with Edge? It seems it should be such a simple thing and also important thing
    Thanks in advance for reading and any given help!

    I have verified that an Edge published banner can be booked into DFP (Doubleclick for Publishers) as a third party tag by creating an iFrame of the link to your edge published HTML file. You save that file as a *.txt.There is still the issue of click URL macros, and cachebusters. For DFP the click URL macro is %%CLICK_URL_ESC%%
    So you would probably use in Edge
    window.open('cta', %%CLICK_URL_ESC%%'http://somedomain.com/');
    then for the cachebuster, DFP's is random=%%CACHEBUSTER%%
    This is what an Edge published banner tag would look like.
    <style type="text/css">
    body{
    margin: 0;
    padding: 0;
    </style>
    <iframe src="http://www.somedomain.com/yourfilename.html"
    marginwidth="0" marginheight="0" scrolling="no" width="160" align="top"
    frameborder="0" height="600"></iframe>
    IMO it is worth pursuing using Google Analytics for the reporting, as you can put your Google Analytics code in your Edge published HTML file.Hopefully someine with GA experience will chime in.
    Event Tracking in Google Analytics Universal through Google Tag Manager - YouTube

  • How to make a portlet unvisible for another(not Owners) Users?

    Hi all,
    I (Site-Owner) have create a little Portal-Site with any portlets.
    I want to make one or two portlets(Admin-Area) unvisible for other users. But when I create a portlet as Site-Owner, then all another users can they see.
    How to make a portlet unvisible for another users?
    Regards
    Leonid Pavlov

    You can hide and show portlets of Web providers (OmniPortlet, Web Clipping, and Java portlets) on portal pages dynamically. This functionality is controlled by security managers. The PDK provides a number of security managers. For example:
    o Group security manager: The group security manager makes the portlet appear to users who are members of a specified group, while hides the portlet for those who are not members.
    o Authentication level security manager: You can use the authentication level security manager to control access to the portlets based on the user’s authentication level. For example you may hide the portlet from public users, but display it to authenticated users.
    In addition to the security managers provided by the PDK, you can build your own security managers.
    Although OmniPortlet and Web Clipping do not expose security managers through the user interface, you can apply them by editing their XML provider definition file.
    For PL/SQL portlets you can use the is_runnable method to control whether the portlet is hidden or shown.
    Peter

  • How we can make CQ dialog box movable on page like sidestick?

    Hello All,
    How we can make CQ dialog box movable on page like sidestick.
    Should we have to use any property for that.
    Please tell me if any onw know this ticks.
    Thanks a ton in advance...
    Regards,
    Satish

    You could use dialogMode property configured under cq:editConfig node.
    dialogMode : floating
    http://dev.day.com/docs/en/cq/current/developing/components.html
    This should make your component dialog float and be movable.
    - Ashish

  • How to handle the button "cancel" in a dialog box for displaying views?

    Hello!
    I ve a question about handling the cancel button in a dialog box for displaying views.
    I ve already implemented the dialog box by using the following code:
    METHOD eh_onnewqact.
      DATA stitle TYPE string.
      IF m_popup IS BOUND.
        stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
        m_popup = comp_controller->window_manager->create_popup(
          iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
          iv_usage_name = 'CUNewQAct'
          iv_title = stitle
        CALL METHOD m_popup->set_on_close_event
          EXPORTING
            iv_view       = me
            iv_event_name = 'NEWQACT_POPUP_CLOSED'.
      ENDIF.
      m_popup->open( ).
    ENDMETHOD.
    My dialog box consists two buttons - cancel and create.
    The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
    me->close( ). But that didnt works!
    Could u give me further information about that, because my cancel event-handler is empty?
    method EH_ONCANCEL_QACT.
    endmethod.
    After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
    Thank you very much!

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • When Web Publishing, how do I get dialog boxes to appear?

    I am trying to make my Test Station software accessable from the engineers desk. I used LabVIEW version 6.1 to publish the main VI. I can, through Microsoft Explorer, access my VI and change enumerations. I need to allow the users to enter excel spreedsheet file names that contain the input data and expected results for the test. Currently my software uses the File Dialog to prompt the user for the file name. I also use Two Button Dialog and another VI's front panel to gather information at specific points during the test. The File Dialog box is the first one within the flow of the software and it does not work over the internet. Do you have any recommendations on how I might be able to allow the user to enter
    a file name similar to the File Dialog?

    > I am trying to make my Test Station software accessable from the
    > engineers desk. I used LabVIEW version 6.1 to publish the main VI. I
    > can, through Microsoft Explorer, access my VI and change enumerations.
    > I need to allow the users to enter excel spreedsheet file names that
    > contain the input data and expected results for the test. Currently my
    > software uses the File Dialog to prompt the user for the file name. I
    > also use Two Button Dialog and another VI's front panel to gather
    > information at specific points during the test. The File Dialog box is
    > the first one within the flow of the software and it does not work
    > over the internet. Do you have any recommendations on how I might be
    > able to allow the user to enter a file name similar to the File
    > Dialog?
    >
    The problem here is that the OS is bringing up the file dialog, but for
    which computer? Asking computer B to show the directory structure of
    computer A just doesn't work that well and it is also a potential
    security lapse, so for these reasons, the VI Server doesn't do this by
    default for the remote panel.
    To let the remote client pick a directory, you have a couple choices.
    If you trust them and they are easy to type, you can just present a path
    control partially filled in and let them type the last portion.
    Another, more limiting approach is to use the file function to list out
    a directory and populate a listbox with the contents. This is an easy
    way to give less control to those that you may not trust as much, but
    still give them something similar to a file dialog. Finally, if you
    look around, you can find a more complete simulated file dialog. I know
    that the older test executive had one. You won't have to change
    anything as it will be running on the server and displaying on the
    client, just what you are looking for. Perhaps you will want to look
    around on develop zone for something like
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/893644426b21c704862567b700720c06?OpenDocument
    which I haven't look at, so no promises, but there are probably others
    to choose from as well.
    Greg McKaskle

Maybe you are looking for

  • Facetime on my iphone 4s is not working what can i do

    facetime on my iphone 4s is not working what can i do

  • Can't seem to click anything without using CTRL

    There are some similar threads here but nothing exact. I have a MacBook. I was transferring files from a USB stick when OS froze completely and stopped responding to both the keyboard and trackpad. I had to use the power button. On restart, everythin

  • I am facing syntactical error, please help

    Hi All, Please help me. I am facing syntactical error for the below mentioned code, please help me to get rid of it. I want to fetch the record set in cursor loop it to process one by one inside the loop - for every record - i need to fetch a record

  • My iPhone device cannot be detected in my laptop computer.

    iTunes is open but when i connect my iPhone via the USB cord, a message displays"This iPhone cannot be used because the Apple Mobile Device service is not started" Please help how to solve this as i cannot perform the sync from the computer to my iph

  • Whitespace deleted when saving FM XML

    In FM 11, when I save a FM document into XML, the whitespacing between inline elements and after cross-refs is removed. Did anyone experience the same problem? Any solution available? Ann