Selecting file from dropdown menu

Hi,
I've just converted a form from Excell into PDF. My original form had an option to open another page by selecting a file from a dropwdown, then hitting a button.
Obviously the macro will not work in PDF, but is there another way in which I can open a specific file from a dropdown list. At the moment I am only able to open one file per button. I need to be able to scroll down, say A, B, C, D, E and then select which number I want to open.
Any help is much appreciated.

You can start here: http://www.adobe.com/devnet/acrobat/javascript.html
But I should warn you, it's very different from VB, and it could be complex.
Good luck, though.

Similar Messages

  • Help with selecting files from script menu or drag and drop

    I found this scale images applescript online. It works great when a bunch of files is dragged on top of the script but I would like it to also work when a folder or group of files is selected in the Finder and I activate it from the scripts menu.
    I can't get my on run statement to work. I'm not really an Applescript guy so I'm really just asking if someone can help finish what I started in this on run.
    -- save in Script Editor as Application
    -- drag files to its icon in Finder
    property target_width : 120
    property save_folder : ""
    on run
    tell application "Finder"
    activate
    set folder_path to quoted form of (POSIX path of (the selection as alias))
    set theItems to every file of folder_path
    end tell
    end run
    on open some_items
    -- do some set up
    tell application "Finder"
    -- get the target width, the default answer is the property target_width
    set new_width to text returned of ¬
    (display dialog "Target width:" default answer target_width ¬
    buttons {"OK"} default button "OK")
    if new_width as integer > 0 then
    set target_width to new_width
    end if
    -- if the save_folder property has not been set,
    -- set it to the folder containing the original image
    if save_folder is "" then
    set save_folder to ¬
    (container of file (item 1 of some_items) as string)
    end if
    -- get the folder to save the scaled images in,
    -- default folder is the property save_folder
    set temp_folder to ¬
    choose folder with prompt ¬
    "Save scaled images in:" default location alias save_folder
    set save_folder to temp_folder as string
    end tell
    -- loop through the images, scale them and save them
    repeat with this_item in some_items
    try
    rescaleand_save(thisitem)
    end try
    end repeat
    tell application "Image Events" to quit
    end open
    on rescaleand_save(thisitem)
    tell application "Finder"
    set new_item to save_folder & "scaled." & (name of this_item)
    end tell
    tell application "Image Events"
    launch
    -- open the image file
    set this_image to open this_item
    set typ to this_image's file type
    copy dimensions of this_image to {current_width, current_height}
    scale this_image by factor (target_width / current_width)
    save this_image in new_item as typ
    end tell
    end rescaleandsave

    When items are dragged to your script's icon they are passed in to the on open handler, so this triggers:
    on open some_items
    and the dragged items are passed in as some_items
    In contrast, when you double-click on the script, or invoke it via the Script menu, this runs the on run handler:
    on run
      tell application "Finder"
        activate
        folder_path to quoted form of (POSIX path of (the selection as alias))
        set theItems to every file of folder_path
      end tell
    end run
    However, there's nothing in this block that actually does anything with the selection - you (dangerously) assume that the selection is a folder (you really should check first), and just set theItems to every file in that folder then you exit.
    So to do what you want you'll need to edit your run handler to filter the selection and pass files over to the code that does the hard work.
    You already have the basis for this - your rescaleandsave() handler, so it's just a matter of identifying the files in the selection and passing those over to that handler:
    on run
      tell application "Finder"
        set cur_selection to (get selection) -- get the selection
        repeat with each_item in cur_selection -- iterate through
          if class of each_item is folder then -- do we have a folder?
            set theFiles to every file of each_item -- if so, get its contents
            repeat with each_file in theFiles -- iterate through them
              my rescaleand_save(eachfile) -- and process them
            end repeat
          else if class of each_item is document file then -- do we have a file selected?
            my rescaleand_save(eachitem) -- if so, process it
          end if
        end repeat
      end tell
    end run
    So the idea here is that the run handler gets the selection and works through the (potentially-numerous) items. For each selected item it checks whether its a folder or a file, if its a folder it gets all the files within and passes them to the rescaleandsave handler.
    Note that this is not recursive - it won't catch files within folders within folders - since it only looks at the top level of selected folders, but it wouldn't be hard to rework the script to handle that if that's what you need.

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • When is select Bookmarks from the Menu Bar, at the very bottom are a bunch of bookmarks. How can I move them in groups to a folder?

    When is select Bookmarks from the Menu Bar, at the very bottom are a bunch of bookmarks. How can I move these in groups to a folder or folders?

    The easiest way to move bookmarks around is in the Bookmarks Organizer, which at some point was renamed the Library. To open it, you can choose Bookmarks > Show All Bookmarks or press Ctrl+Shift+b.
    (Please note that the sort order of the Library dialog doesn't actually carry over to the menu. To sort the menu alphabetically, it's easiest to open the Bookmarks Sidebar, right-click the words Bookmarks Menu and choose Sort by Name.)

  • The problem i am having is when i go to open a file from the menu bar that as "FILE" is blackcolor

    the problem i am having is when i go to open a file from the menu bar that as "FILE" is all black in color and i cant see what i'm picking how do i change that so i can see what i'm picking

    Is that Photoshop?  Depending on the version you could try to change the Color Theme (Edit | Preferences | General | Appearance).
    If that does not help, you may have a better chance to get a useful answer if you ask in the Photoshop or Photoshop Elements forum.

  • BI PUBLISHER : not able to select 'all' from the menu as parameter

    Hi ,
    I have created a report using a SQL query . i created a list of values using the following sql query :
    select     EDM_TRD_HDR.TRD_ID as TRD_ID
    from     MUREXEDM.EDM_TRD_HDR
    and selected this in the menu settings in parameters .
    i checked on 'can select all ' option and also on 'NULL Values passed' button.
    On clicking view , i am able to see the data for the default valu of the parameter. however, when i select 'all ' from the menu , i am just getting the column headings and no data .
    please reply if you are aware of this problem.
    Also let me know wether we can create a view selector for a BI publisher report and are there any functionalities which can be implemented in answers and not in the publisher.

    You've selected 'null value passed' so you need to write the driving query in your data model in a way that will show all values when the parameter is null:
    eg
    select *
    from
    your_table
    where
    (:p_paramter is null or your_column = :p_parameter)
    and ...
    (assuming not multi select).
    With view selector, you can create conditional regions so could mimic something like that. With regards to features they are completely different products - so almost everything.
    Regards,
    Robert

  • I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I have the same problem with the right click and do not have the ask toolbar installed on my system?

  • Select value from dropdown list

    hi All,
    we have a bsp application MVC based, we have a dropdown list,  what we require is when user selects an entry from drop down list and presses a button, we want to select that value from drop down list and then pass it to the method that will be called when button is pressed event..
    I want to know two things
    1. How do i get the selected value from dropdown ?
    2. hw can i retain it to send it to method call in handle_event bit
    thank you all

    Hi,
    If your application is stateless you have to capture the selected value in do_handle_data and assign it to the controller class attribute and later use this value in do_handle_event directly.
    If your application is stateful, on your dropdownlist htmlb tag click F1 you can read the documentation which also shows how to capture the value of dropdownlist in do_handle_event. In the same documentation you can even find few samples provided and check those samples in your system.
    Hope this helps.
    Regards,
    Abhinav

  • Time capsule newMac book pro,how do I retreive selected files from time capsule?

    My old MacBook crashed recentlyandIjust purchased a new MacBook pro. I want to transfer selected files from my TimeCapsule but don't know how to do it. I used Migration Assistant but it would only allow me to transfer all of the files or apps and not individual ones. If I transfered the whole info over I would have minimal memory on my new computer (got a solid state 128 GB). Is there a way to see the contents of the Time machine and pullover the files I want andnot theones I dont? Thanks in advance

    It says to plug in the drive in the other computer, but my old computer is dead, it wont even start up the hard drive was physicaly damaged. I tried control clicking on time machine and there are no discs to choose from.
    Also when I try to enterthe time machine I get an error code -6584

  • Displaying ui element when selecting value from dropdown

    hi,
    i have a requirement when user select value from dropdown( some x from dropdown) textedit ui(where user can enter some text) should be displayed and submitted. please give some idea

    Hi Babanmohi     ,
    First create a node in your context and under that create an attribute. Then add a Dropdown by Index and TextEdit UI on to your view. Bind both the UI element with the same attribute.
    Then create an action on onSelect event of the DropDown UI element. Go to its implementation and write the following:
    wdContext.current<Node name>Element.set<attribute name>(wdContext.current<Node name>Element.get<attribute name>)
    For example, if in my context there is a node called testnode and under that if im having an attriburte called name, then do the following coding in the onSelect method of dropdown:
    wdContext.currentTestnodeElement().setName(wdContext.currentTestnodeElement().getName());
    Reply me if you have any issues
    Regards,
    Jithin

  • Selecting Shutdown from Apple menu causes restart AND MBP won't stay asleep

    2 possibly related problems. When I select shutdown from the Apple menu, my comp restarts.
    When I close the lid, the MBP wakes up every 20 secs or so. It's like living with someone who has had the hiccups for 2 years.
    Bluetooth is disable. No usb devices are connected. Wake on network is turned off.
    I have tried resetting the PMC, zapping the PRAM, AND deleting com.apple.Autowake.plist and com.apple.PowerManagement.plist
    From console, about shutdown:
    5/13/10 8:46:06 PM shutdown[195] SHUTDOWN_TIME: 1273808766 865706
    5/13/10 8:46:06 PM kernel systemShutdown true
    5/13/10 8:46:06 PM kernel systemShutdown true
    5/13/10 8:46:40 PM kernel systemShutdown false
    5/13/10 8:46:41 PM kernel Previous Shutdown Cause: 5
    5/13/10 8:49:11 PM shutdown[201] halt by tommaroney:
    from console, about sleep:
    5/13/10 8:44:35 PM kernel sleep
    5/13/10 8:44:35 PM kernel Wake reason =
    5/13/10 8:44:35 PM kernel System Wake
    5/13/10 8:44:35 PM kernel Previous Sleep Cause: -60
    5/13/10 8:44:35 PM kernel AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
    5/13/10 8:44:35 PM configd[14] network configuration changed.
    5/13/10 8:44:35 PM mDNSResponder[19] RegisterInterface: Frequent transitions for interface en1 (FE80:0000:0000:0000:021E:C2FF:FEB9:C2A7)
    5/13/10 8:44:36 PM kernel Auth result for: 00:20:a6:b8:55:ee MAC AUTH succeeded
    5/13/10 8:44:36 PM kernel AirPort: Link Up on en1
    5/13/10 8:44:36 PM configd[14] network configuration changed.
    5/13/10 8:44:36 PM mDNSResponder[19] RegisterInterface: Frequent transitions for interface en1 (10.11.1.42)
    5/13/10 8:44:40 PM mDNSResponder[19] DeregisterInterface: Frequent transitions for interface en1 (10.11.1.42)
    5/13/10 8:44:41 PM kernel hibernate image path: /var/vm/sleepimage
    5/13/10 8:44:41 PM kernel sizeof(IOHibernateImageHeader) == 512
    5/13/10 8:44:41 PM kernel Opened file /var/vm/sleepimage, size 2147483648, partition base 0xc805000, maxio 400000
    5/13/10 8:44:41 PM kernel hibernate image major 14, minor 1, blocksize 512, pollers 5
    5/13/10 8:44:41 PM kernel hibernateallocpages flags 00000000, gobbling 0 pages
    5/13/10 8:44:41 PM Firewall[59] krb5kdc is listening from :::88 proto=6
    5/13/10 8:44:41 PM Firewall[59] krb5kdc is listening from 0.0.0.0:88 proto=6
    5/13/10 8:44:42 PM kernel AppleYukon2: 00000000,2524d000 sky2 - HardwareNotResponding, marking offline
    5/13/10 8:44:43 PM kernel System SafeSleep
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall start
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall time: 83 ms
    5/13/10 8:44:43 PM kernel pages 187393, wire 35045, act 37976, inact 132, spec 35, zf 0, throt 0, could discard act 20320 inact 17074 purgeable 2201 spec 74610
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall found pageCount 73188
    5/13/10 8:44:43 PM kernel IOHibernatePollerOpen, mlget_interruptsenabled 0
    5/13/10 8:44:43 PM kernel IOHibernatePollerOpen(0)
    5/13/10 8:44:43 PM kernel writing 71701 pages
    5/13/10 8:44:43 PM kernel image1Size 73461248
    5/13/10 8:44:43 PM kernel PMStats: Hibernate write took 4330 ms
    5/13/10 8:44:43 PM kernel all time: 4330 ms, comp time: 484 ms, deco time: 0 ms,
    5/13/10 8:44:43 PM kernel image 137517568, uncompressed 294051840 (71790), compressed 131663056 (44%), sum1 48a3dfe, sum2 fc9481ea
    5/13/10 8:44:43 PM kernel hibernatewriteimage done(0)
    5/13/10 8:44:43 PM kernel sleep

    2 possibly related problems. When I select shutdown from the Apple menu, my comp restarts.
    When I close the lid, the MBP wakes up every 20 secs or so. It's like living with someone who has had the hiccups for 2 years.
    Bluetooth is disable. No usb devices are connected. Wake on network is turned off.
    I have tried resetting the PMC, zapping the PRAM, AND deleting com.apple.Autowake.plist and com.apple.PowerManagement.plist
    From console, about shutdown:
    5/13/10 8:46:06 PM shutdown[195] SHUTDOWN_TIME: 1273808766 865706
    5/13/10 8:46:06 PM kernel systemShutdown true
    5/13/10 8:46:06 PM kernel systemShutdown true
    5/13/10 8:46:40 PM kernel systemShutdown false
    5/13/10 8:46:41 PM kernel Previous Shutdown Cause: 5
    5/13/10 8:49:11 PM shutdown[201] halt by tommaroney:
    from console, about sleep:
    5/13/10 8:44:35 PM kernel sleep
    5/13/10 8:44:35 PM kernel Wake reason =
    5/13/10 8:44:35 PM kernel System Wake
    5/13/10 8:44:35 PM kernel Previous Sleep Cause: -60
    5/13/10 8:44:35 PM kernel AirPort: Link Down on en1. Reason 4 (Disassociated due to inactivity).
    5/13/10 8:44:35 PM configd[14] network configuration changed.
    5/13/10 8:44:35 PM mDNSResponder[19] RegisterInterface: Frequent transitions for interface en1 (FE80:0000:0000:0000:021E:C2FF:FEB9:C2A7)
    5/13/10 8:44:36 PM kernel Auth result for: 00:20:a6:b8:55:ee MAC AUTH succeeded
    5/13/10 8:44:36 PM kernel AirPort: Link Up on en1
    5/13/10 8:44:36 PM configd[14] network configuration changed.
    5/13/10 8:44:36 PM mDNSResponder[19] RegisterInterface: Frequent transitions for interface en1 (10.11.1.42)
    5/13/10 8:44:40 PM mDNSResponder[19] DeregisterInterface: Frequent transitions for interface en1 (10.11.1.42)
    5/13/10 8:44:41 PM kernel hibernate image path: /var/vm/sleepimage
    5/13/10 8:44:41 PM kernel sizeof(IOHibernateImageHeader) == 512
    5/13/10 8:44:41 PM kernel Opened file /var/vm/sleepimage, size 2147483648, partition base 0xc805000, maxio 400000
    5/13/10 8:44:41 PM kernel hibernate image major 14, minor 1, blocksize 512, pollers 5
    5/13/10 8:44:41 PM kernel hibernateallocpages flags 00000000, gobbling 0 pages
    5/13/10 8:44:41 PM Firewall[59] krb5kdc is listening from :::88 proto=6
    5/13/10 8:44:41 PM Firewall[59] krb5kdc is listening from 0.0.0.0:88 proto=6
    5/13/10 8:44:42 PM kernel AppleYukon2: 00000000,2524d000 sky2 - HardwareNotResponding, marking offline
    5/13/10 8:44:43 PM kernel System SafeSleep
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall start
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall time: 83 ms
    5/13/10 8:44:43 PM kernel pages 187393, wire 35045, act 37976, inact 132, spec 35, zf 0, throt 0, could discard act 20320 inact 17074 purgeable 2201 spec 74610
    5/13/10 8:44:43 PM kernel hibernatepage_listsetall found pageCount 73188
    5/13/10 8:44:43 PM kernel IOHibernatePollerOpen, mlget_interruptsenabled 0
    5/13/10 8:44:43 PM kernel IOHibernatePollerOpen(0)
    5/13/10 8:44:43 PM kernel writing 71701 pages
    5/13/10 8:44:43 PM kernel image1Size 73461248
    5/13/10 8:44:43 PM kernel PMStats: Hibernate write took 4330 ms
    5/13/10 8:44:43 PM kernel all time: 4330 ms, comp time: 484 ms, deco time: 0 ms,
    5/13/10 8:44:43 PM kernel image 137517568, uncompressed 294051840 (71790), compressed 131663056 (44%), sum1 48a3dfe, sum2 fc9481ea
    5/13/10 8:44:43 PM kernel hibernatewriteimage done(0)
    5/13/10 8:44:43 PM kernel sleep

  • Is there a way to sync to an ipad or iphone selected files from a secondary itunes without erasing everything on the mobile device.

    Is there a way to sync jujst selected files to an ipad or iphone from an itunes program that is not the one that is primarily used for that specific remote device?
    I sync my ipad to my desk top but also have a laptop that has some files that I want on my ipad but don't want to erase everything to get them on.

    Not really.  iOS devices were designed to sync to one iTunes account, not multiple accounts.  Simply email what you want to your Desk Top and transfre them to your iTunes library on that computer.  Or get a Dropbox account.  You can download Dropbox on your iPad and have dropbox on your Desk Top and Laptop.  You could access files, music, pictures, etc., you put in your Dropbox account from any device.  You get 2GB free storage, but you can purchase additional storage if you need it.

  • CL_gui_frontend_services-To read data by selecting file from file dialog

    Hi I have a requirement in which -
    I have to selct the file using file open dialog . Cl_gui_open_frontendservices . From this I have to read the data into internal table .
    How can I get the data  after getting the file name .
    Does any one have idea on this .

    data: begin of itab_string occurs 0,
          record type char255,
          end of itab_string.
    data:  L_FILETABLE TYPE FILETABLE,
    L_FILETAB_H TYPE FILETABLE WITH HEADER LINE.
    data: p_file1 type string.
    selection screen .
    PARAMETERS: P_FILE TYPE LOCALFILE.
    at selection-screen on value-request for P_FILE.
    IF THE USER SELECT EXTENTION BUTTON IT WILL OPEN THE LOCAL DIRECTORY FOR SELECTING THE FILE LOCATION.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       = 'CSV'
       DEFAULT_FILENAME        = 'C:\Documents and Settings\kiran\Desktop\STATUS.csv'
       FILE_FILTER             =
       INITIAL_DIRECTORY        = 'C:\Documents and Settings\kiran\Desktop\'
       MULTISELECTION          =
       WITH_ENCODING           =
      CHANGING
        FILE_TABLE              = L_FILETABLE
        RC                      = RC
       USER_ACTION             =
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF SY-SUBRC <> 0.
    ELSE.
    LOOP AT l_filetable INTO L_FILETAB_H.
    P_FILE = L_FILETAB_H-FILENAME.
    move p_file to p_file1.
    EXIT.
    ENDLOOP.
    ENDIF.
    passing the selected file name to gui_upload for loading the data
    into internal table
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = p_file1
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = itab_string
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE I000(Z00) WITH 'PLEASE PROVIDE CORRECT FILE NAME'.
    ENDIF.
    Reward points for all helpful answers,
    kiran.M
    Reward points if helpful and close this thread
    Message was edited by:
            KIRAN KUMAR

  • How to open selected files from a listbox

    I am trying to open files from selected items in a listbox, but am having some problems.
    Here is my code:
    var firstLibrary = "C:\\Program Files (x86)\\Adobe\\test\\Library1.indl";
    var secondLibrary = "C:\\Program Files (x86)\\Adobe\\test\\Library2.indl";
    var libraryList = [firstLibrary, secondLibrary]; // array filled with file url's
    var w = new Window ("dialog");
    var myList = w.add ("listbox", undefined, libraryList, {multiselect: true}); // list populated with libraryList array
    var print = w.add ("button", undefined, "Print selected items");
    myList.selection = 0; // default selection of first index
    print.onClick = function () // when button is clicked, should print selections to console, open files and then close the window
        for (var i = 0; i < myList.selection.length; i++){
            $.writeln (myList.selection[i].text); // <-- correctly prints the selected items to the console
            //app.open(File(myList.selection[i].text)); // <-- this line I would assume allows me to open the files because the text is a file url,
                                                                            // however, uncommenting it breaks the code
        w.close();
    w.show ();

    @Sam – Instead of a "dialog" type of Window use a "palette" type:
    var w = new Window ("palette");
    "palette" creates a modeless type of dialog.
    Or close the Window with type "dialog" before opening the file with:
    var myFileToOpen = File(libraryList[i]);
    w.destroy();
    app.open(myFileToOpen);
    (Not tested with your code, but should work…)
    Uwe

  • Importing selected files from Bridge into Photoshop stack?

    Hi Guys,
    Is it possible to run the "Load files into Stack" script from Bridge having selected your files in Bridge itself. There are work arounds but if this script can be run in this way it would save me alot of time.
    Not sure if the script can be dropped into the a Bridge sub folder or whether or not Bridge can read jsx files? I do seem possible in the fact that some Photoshop scripts can be ran from Bridge but to my knowledge these are not jsx files.
    Basically I just need that to run exactly the same way but be launched from Bridge into Photoshop with those selected files
    Any help would be very appreciated.
    Many thanks.

    I am not exactly sure what you are asking, but I know you can create stacks in Bridge by simply selecting the desired files and pressing ctrl G on the PC (command G on MAC?) I believe there is a forum dedicated to Bridge scripting. You might have better luck there.

Maybe you are looking for

  • Error "file not compatible"

    When I open my psd file I get the following error "Could not complete your request because the file is not compatible with this version of Photoshop elements" I am using PE 11. I was working on the file yesterday and everything was good. I saved it a

  • How do I watch downloaded movies on the macbook?

    Hi. I'm a new mac user, and I don't know everything about it yet. I'm wondering how I can watch downloaded movies or tv-shows on my macbook? I usually watch downloaded movies on vlc, but it doesn't work. I just don't get it. Hope someone can help me!

  • Clear the vendors documents

    How to clear the vendors open documents pls give me advice

  • Mini display is shutting down computer.

    I've been using a mini display to HDMI cord for awhile and nothing has been wrong with it until the other day. When I plugged the mini display into the port on my 13 inch MacBook Pro, it just shut down. Does anyone know why?

  • Getting error "Sender address invalid"

    I've had the phone since release and everything has been working smoothly (and I am happy our area finally got the 3G network!), until I got a new email address. I can receive my email fine on the phone, but when I go to reply and hit send, it tells