Drop down to the opening of libraries
Im a complete noob to javascript... ive been reading some tutorials and stuff... but this is not enough!
what im trying to accomplish here is to have a drop-down list to open the selected file.
myDialog = app.dialogs.add var ({name: "Iconos Travelplan", canCancel:true});})
{with (MyDialog)}
{with (dialogColumns.Add ())}
{with (borderPanels.Add ())}
{with (dialogColumns.Add ())}
staticTexts.add ({staticLabel: "una biblioteca select :"}); "})
}
{with (dialogColumns.Add ())}
var myIcons = dropdowns.add ({stringList:})
['Iberrail', 'Costas', "Teletipos"], selectedIndex:0});
If (MyDialog.Show () == true) {}
(var Iberrail = app.open(File("/c/iberrail.indl"), false);
(var app.open(File("/c/costas.indl = Costas"), false);
(var Teletipos = app.open(File("/c/teletipos.indl"), false);
}
}
}
}
}
myDialog.destroy ();
Hey!
Here is my solution. Maybe there are other ways too...
var myFiles = Array( ["Iberrail","Costas","Teletipos"], // names in list box ["/c/iberrail.indl","/c/costas.indl","/c/teletipos.indl"] // file names ); var myDialog = app.dialogs.add({name:"Iconos Travelplan", canCancel:true}); with(myDialog){ with(dialogColumns.add()){ with(borderPanels.add()){ with(dialogColumns.add()){ staticTexts.add({staticLabel:"Selecciona una biblioteca:"}); } with(dialogColumns.add()){ var myIcons = dropdowns.add({stringList:myFiles[0], selectedIndex:0}); } } } } if(myDialog.show() == true){ app.open(File(myFiles[1][myIcons.selectedIndex]),false); } myDialog.destroy();
tomaxxi
Tags: InDesign
Similar Questions
-
Why the tree in Explorer drop down when you open a folder in Windows 7?
I don't know what kind of joke someone plays, but it is not
. I have already most likely to get surgery on both of my hands soon for carpal syndrome severe. For each round of a mouse wheel and all the clicks that I have to endure it's useless, my pain and my symptoms are growing more intense. I have 7 hard drives in my computer. I have search and locate and organize and delete and add files of ALL TIME. I'm in the Explorer of ALL TIME. It is deplorable that I had XP Pro because of threats of compliant. XP has at least had an Explorer who worked perfectly. Now of having to learn a new platform (Windows 7) and I am forced to support a program who has a child of 12 years could have better designed! How long still is * going to go? I discovered only recently that Explorer in Windows 7 has a tree that falls to the bottom of the page fricking every time that a file is opened, so I am forced to dive to the bottom of the page to locate the folder. So I started the research on the forums to see if I was losing my mind and just something wrong. I read messages from people complaining about this BS in 2007. Why is that, after 4 years this perverted arrogant control problem still exists? * original title - I just Windows 7. Why the tree of the menu forsaken God in the Explorer drop down when I open a folder? *
I just Windows 7. Why the tree of the menu forsaken God in the Explorer drop down when I open a folder?
This is the Bug of scrolling in the left pane.
See the bottom of this post for help with the left pane scroll bug using Classic shell.
Say you want Microsoft fixed it by voting on the Microsoft Connect Web site:
Look at the left pane scrolling bug:
Video testimony of the bug of scrolling in the left pane using Windows Explorer in Windows 7
This illustrates a way to reproduce it, by clicking on the triangle to expand a folder, that you are currently viewing as it reproduces.Son of left pane scroll Bug:
1 bug: Windows Explorer develops bad records, jumping the folder develop you to the bottom of the navigation pane
2 tree of Windows explore expands downstairs, not upstairs like it used to be
3. Windows Explorer navigation pane problem4. Explorer moves the folder selected to the bottom of the folder list. How can I stop this?
5. behavior of strange folder in the left pane of Windows Explorer
FIX THE BUG IN 10 MINUTES:
The classic interface mainly eliminates the bug in Windows Explorer, but it will still exist in the open/save dialog boxes.
Pane left scrolling bug (and other corrections):
Using the classic interface to restore functionality of Windows Explorer
After you have installed the free Classic Shell , you can customize Windows Explorer more closely to how you want it, the quote below is just a way to do it. Click here to see some of the options that you can customize, and here is the FAQ page for the classic interface.
A solution that works for the restoration of some features.
1) install the free Classic shell. It's very customizable and works like a mod for Windows Explorer rather than a full blown replacement. You don't need to install the classic Start Menu option, but you can if you wish.
2) restart the computer.
3) launch Windows Explorer (Start - computer) and turn on "Always show Menus" (organize - Layout - check menu bar). It's just for the configuration, you can disable it again later if you wish.
4) right click on the menu bar and turn on the 'Classic Explorer Bar.' This adds a series of icons for cut/copy/paste in Explorer. Basically, it also adds the "Configuration" icon
5) go in the configuration and from there, you can change things to your heart's content. To kill the horrible record-jumping 7 Windows, place you Vista in 'Style Navigation pane. You can even hit back to XP mode if you want (this adds lines to the tree of folders and adds a classic icon "+" for the expansion of folders). The Windows Vista folder display style looks about the same as the view from Windows 7, but it gets rid of the horrible blow.
6) adjust other settings you want.After that, you can activate the toolbar and menus walk back to explore if you wish. Explorer Windows seems largely the same, but folders is no longer jumping around. Vote for Microsoft to fix this bug.
Now if only MS allows to code correctly so that we don't have to mess with third-party applications to get Windows actually works...
You can also let Microsoft know you want this bug fixed here: http://mymfe.Microsoft.com/Windows%207/feedback.aspx?formid=195
Note: do not have the message that is too long, there is a size limit for your message, even if page does not tell you on this subject.
-
My suite creative cloud everything has disappeared. I just had last week. Each place of access applications is empty, including the drop down on the desk. And of course, there is no one to talk at the end of week!
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html
-
File menu Flash dropdown, drops down on the site from loading in the browser.
File menu Flash dropdown, drops down on the site from loading in the browser.
< removed by mod >
Include code in your ad that deals with the appearance of the menu drop down. Something is triggering fall without having to interact with him... It will take just a stop(); command in the script if it's an animation timeline.
-
NavBar menu drop down behind the sidebar
I sent this yesterday but didn't have not heard of anyone. Anyone want to take a stab at it for me please.
Would be someonoe take a look at the navigation bar on this site I'm redesign please.
Fall of IE7 under ministries and stewardship fall behind the top area of the sidebar. IE6 and FF looks good.
There are still a few errors that I work, but do not believe they have something to do with the navigation bar Act in this way in IE7.
Also in IE6 my head sometimes has very long. Thoughts?
I hope someone can help. Thank you.
Lynne
Search for this rule:
{#navbar}
Background: url (.. / images/bg_topbar.jpg);
background-color: #13214 c;
height: 2.25em;
margin: 0;
}Change to this:
{#navbar}
Background: url (.. / images/bg_topbar.jpg);
background-color: #13214 c;
height: 2.25em;
margin: 0;
position: relative;
z index: 999999;
}--
Al Sparber - PVII
http://www.Projectseven.com
The finest Menus Dreamweaver | Galleries | Widgets
http://www.Projectseven.com/go/pop
The ultimate DW menu system"lynnegeek" wrote in message
News:gonj2e$5RP$1@forums. Macromedia.com...
> Thanks for checking out Mark. I tried your suggestions and it does not
> work. I have
> currently have mistakes, but they are caused by the video and
> marquee.
> When I take those out, the page validates well. I replace the
> marquee
> as soon as I find some js to do the same.
>
> Unfortunately my nav menu drop-down under the stewardship and departments always
> mask
> behind the top in the sidebar box.
>
> I'm starting to have pain in the chest over this. Don't know what I don't see.
> I
> guess that has to do with the top box.
>
> Is there anyone out there (I want to sing Pink Floyd!) that
> would be
> Take a look at this for me. Here is the
> http://www.webassistantsllc.com/clients/QOP
>
> I appreciate any help. Lynne:
> -
When I get off the fall from the address window, rather than display the URL of the Web site I want to open in a second tab says "switch to the tab '. But I don't want to move to the tab - I want to open a second tab on the same URL. If I want to open it a second time, I have to manually enter the address. Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu? I was always able to do this with the previous versions of Firefox.
"Is it possible to turn off this option so that I can open the second tab by using the same address in the drop-down menu?
You can install this add-on: https://addons.mozilla.org/en-US/firefox/addon/switch-to-tab-no-more/
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You must update some plug-ins:
- Plugin check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Next-generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
Where is the button refresh and the drop down menu the menu to go to previous tabs
Usually, there is a button to refresh/reload the page in its current state. You can also click Next for the "previous or next page" arrows and have a list of pages viewed before if you can select one of them to go back to not necessarily just the previous page. I guess you could just keep clicking on the arrow to the left, but it is really not satisfactory. I used these two features all the time and it is a definitive failure in the new version.
Combined Stop/Go/Reload button
From Firefox 4, the Go, the buttons Stop and reload are combined into a single button at the right end of the toolbar URL or address. The button changes depending on the type of activity:- green arrow GB when you type in the address bar
- Red Stop ("X") button while the page is loading
- Reload (circular arrow) to gray when the page is finished loading.
There are separate buttons:
- Open the Customize the toolbar by clicking the Firefox button > Option > toolbars OR by clicking View > toolbars > customize if using the menu OR bar right click in an empty space on a toolbar and select Customize
- Stop and Reload buttons will show separate from the address bar and the search bar
- Drag the buttons anywhere on the Navigation toolbar
- order Reload-Stop will bring together into a single button
- order Stop-Reload will remain in separate keys
- or drag a 'Separator' or 'Space' in the window customize between Reload-Stop and they will remain separate OR separated the two buttons with any other button
- Click done at the bottom right of the window customize to finish
See: https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
Button front/rear
To access the history tab on the previous/next button, you can:- Right-click on the previous/next button
- HOLD the left click button rear until appears the menu drop-down
You can also install this add-on to restore the marker drop on the previous/next button:
If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
-
I click the menu drop down and highlight and open the web page and then I click on the yellow star and choose the tab delete press done and when I close and click the menu drop-down new my web page is still there that I wanted to delete.
Click right a bookmark in the menu dropdown bookmarks and select Remove to remove the bookmark.
-
I used to get a menu drop-down asking if I want to that they remember my password, this menu no longer appears. When I go to the Security page I can't choose the backup password or the option of exceptions. Any help would be appreciated. Thank you
Hello
You should make sure that you run not Firefox in private browsing mode permanent that it does not raise 'Save password' command prompt.
https://support.Mozilla.org/KB/private+browsingFollow the steps below to make sure Firefox is not running on the private browsing:
Tools > Options > privacy > Firefox will be: "use the custom settings for history".
Uncheck the box: "always use the private browsing mode.I hope this helps!
-
When I click on the drop-down lists for options on a Web site, the list disappears before I can click on any option. I find clear the cache and cookies every time, it will work only once before the compensation again. So it must be allowed for each unique click on an option.
Thank you very much for posting back to us to know that it worked.
Reset option is designed to be easy and simple to use, even if it is not something to be used as first choice, especially if you have a lot of changes and extensions.
-
How to stop the Notes app, scroll down to the opening
I have an iPhone 6 s, IOS 9.3.2.
The Notes application scrolls down when opening a Note.
It was not used to do. I don't like it! Most of the time, I add a text near the top of the file.
How can I stop scrolling down when I opened an existing note?
I looked for a setting, but found nothing.
just checked on the iPhone 6 + - it does not scroll down
Do a forced reboot - after all open applications using the app Chooser - invoked by fast double pressing the home button and drag upwards on each app until it disappears from the screen.
Meet the sleep/wake and home buttons down until you see the logo - then release and allow normal start upward
-
How can I change the order in the drop-down list the address bar?
I like Firefox, but one thing I want to change is the behavior of the address bar drop-down list - where it shows the previous sites I visited. I'm looking for a way to list of these in chronological order - so the most recently visited site is at the top. know how it is in IE!
Is this possible? I'm happy to go in and change settings or install any addons that I need to do.
Hello zeel, this article explains how the sorting mechanism in the firefox url bar: https://developer.mozilla.org/en-US/docs/The_Places_frecency_algorithm
Although there are some settings to adjust the table available when you go to Subject: config I don't think it's possible to achieve your goal exactly using the built - in firefox. You can set the preferences (increase) of the value of the . places.frecency * BucketWeight while to increase the rank of the most recent visits and adjust the timespan in days for different buckets through the . places.frecency * BucketCutoff...
-
Photos breaks down on the opening.
Photos crashes everytime at the opening. Here is the stack trace...
Process: Photos [28428]
Path: /Applications/Photos.app/Contents/MacOS/Photos
ID: com.apple.Photos
Version: 1.5 (370.42.0)
Generation information: PhotoApp-370042000000000 ~ 1
Code type: X 86-64 (Native)
Parent process:? [1]
Officials: Photos [28428]
User ID: 502
Date/time: 2016-04-20 09:18:21.403-0700
OS version: Mac OS X 10.11.4 (15E65)
Report Version: 11
Anonymous UUID: F39D044F-57BD-4F44-51FD-6BA1312F703C
Sleep/wake UUID: FCA63ADC-217C-4891-BBAC-FCB772121610
Time since started awake: 120000 seconds
Wake time: 1000 seconds
Integrity of system protection: enabled
Crashed Thread: the queue on the expedition 10: OpenGL context pool
Exception type: EXC_CRASH (SIGABRT)
Exception codes: 0 x 0000000000000000, 0 x 0000000000000000
Note the exception: EXC_CORPSE_NOTIFY
Request for clarification:
Failure of the assertion in + [PAOpenGLDevice _sharedContext], /Library/Caches/com.apple.xbs/Sources/PhotoApp/PhotoApp-370.42/lib/paimaging/Ph otoApps / PAOpenGLDevice.m:220
Failed to create the shared context: Invalid context
Abort() called
first step is to shut down the computer and restart - which can solve
LN
-
No list of "Drop Down" from the previous pages in v6.0
In v3. X... you could get the prerequisites page views on a site/tab by clicking an arrow that was part of the rear navigation arrows. By clicking on the arrow gave you a drop down menu previous pages that you had read (from this tab). This feature is missing from version 6.0. Is it possible to get this back?
Instead of clicking the arrow, you can do the same by clicking on the previous navigation buttons.
-
Rather than use it back arrow above and more to access a previous site I used, it used to be a water drop down just to the right of the arrow to the left. For this reason which has been deleted and can it be reported. If this is not the case, how to return to a previous version of Firefox?
Click and hold an arrow now for a combined list of front/rear.
Maybe you are looking for
-
Should project files I absolutely to be stored on the boot drive by FCP 6
Hello. I always understood that the FCP 6 project files must be stored on your boot drive and would like to know if it is still the recommended location (and why in this case) or I can store them on a 2nd internal drive or an external drive without a
-
All of a sudden, I can't have the Windows 7 taskbar to show when I place the cursor at the bottom... What could be the causes?
-
A new Firefox window opens when I click on the pdf file, but it is empty, no menu or toolbars. Allowed to plug-in and it seems ok.
-
Compaq Presario CQ61 - 421SA Notebook battery 484170-001 necessary
I have a laptop Compaq Presario CQ61-421SA with a number of battery: 484170-001. It gives a warning 601 at startup. Even when I have the trendy area it will suddenly drain and stop immediately without warning making me lose whatever it is that I'm
-
Qosmio F20-137 - need Qosmio CD player
Hi, I recently bought the laptop f20 - 137, but were not able to fully the product recovery needs (ex display, so loading of the store settings), I have not, however, make the Qosmio Player recovery disk, it has not been included in the box when I bo