OpenDialog ScriptUI does not downgrade CS5.5 to CS4

So here's my most recent bit of fun.  The scripts that I have written have been in CS5.5, but I learned today they need work on CS4.

Almost everything seems to work except one critical piece. Here is a brief summary of what I'm doing.

I open a window that has two text boxes and two buttons.  The first button opens a file dialog box that allows the customer to choose where their XML file.  When they select it and click ok, it fills the first text box with the path.

The second button opens a file dialog box that allows the customer to choose the location of their folder of images, and when they click ok, it fills the second text box with the path.

Everything works peachy in CS5.5.  But when I tried in CS4, it's what he does.  When I choose a file and click OK, is to fill the text box with the word "file".  When I choose a folder, this is the filling of the second box with the word "file".

Here are the relevant functions:

F2.onclick = function()

{

TF = File.openDialog ("Select your XML file", "*.xml");

If (tf! = null)

{

E2. Text = tf;

TF = tf.fsName;

}

}

F3.onclick = function()

{

var tfol = new file ("~/My Documents')

TFO = tfol.selectDlg ("Get Folder");

If (tfo! = null)

{

E3. Text = tfo;

TFO = tfo.fsName;

}

}

As I said, this work is fine is CS5.5, but I need to know what is different in CS4 and how to operate it.

Thanks in advance for your help.

Add a line to your code:

If (tf! = null)

{

$.writeln (tf.constructor.name);

E2. Text = tf;

TF = tf.fsName;

}

And run your script from the ESTK when the console is open. You will see that the file is printed. So tf is not a string but a file object. Use e2.text = tf.fsName to display the path name full access for the file or e2.text = tf.name to show that the name. Is the same for the other function, which shows the folder instead of the folder name.

Peter

Tags: InDesign

Similar Questions

  • Does not update CS5 Production Premium, re-installed on the new PC (Windows 8.1). Cannot read Canon CR2 files.  I have re-installed.  What's wrong?

    Does not update CS5 Production Premium, re-installed on the new PC (Windows 8.1). Cannot read Canon CR2 files.  I have re-installed.  What's wrong?

    Jeff, thank you.  I couldn't update any program in CS5.  It turned out that I had to do a 'update manual".  Not sure why it was different, but it worked.

  • HP 15-g013dx: ports USB 2.0 and devices does not downgrade from Windows 7

    Hi all

    I'm trying to downgrade a 15-g013dx (J5T33UA) computer laptop HP Windows 8.1 to Windows 7. It is a four-core AMD A8 APU system.

    I have problems with the devices USB 2.0 not supported by the hardware.  I have all devices in Device Manager, but the computer does not detect the USB 2.0 devices.

    He will recognize USB 3.0 devices very well when they are plugged into the USB 3.0, but no USB 2.0 ports. Peripheral USB 2.0 do not work in any port.  I can't confirm the devices USB 1.1 at this time.

    CMOS configuration is set in Legacy mode: disable.

    Is there an additional driver or configuration that I am missing, or is there something else going on?

    Thanks in advance!

    @OtakuN3rd ,

    Hello and thanks for the display on the HP support forums.  If you want to downgrade your system to Windows 7, you'll want to download the drivers and software supported first.

    Here is the link to your drivers and support systems.

    Drivers for laptop PC HP 15-g013dx

    To make sure you material works you want to install your drivers starting with the chipset driver before all others.

    For windows 7, you'll want to check out this link as well.

    UEFI boot or legacy - tips

    If you follow that you should have no problem.

    If your USB 2.0 ports are still have a problem then contact support phone for repair options.

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    Thanks again for posting and have a nice day

  • "Selections" does not? CS5

    Hello

    Work in Illustrator CS5, all of a sudden, when selecting traces with the direct Selection tool, the nodes and the handles no longer appear? If I have to 'seize' the path and do drag, then the summons but let go once they disappear again? If I click on and drag to select several points, nothing appears or the other. In addition, the text does not seem to show the selection with the text tool - for example, when you double-click to select a word - the text is not the games?

    I checked in the preferences to see if something was wrong, but everything seems fine and put in cell my file pref Illustrator and plist and restarted, but still the same. Any ideas? I accidentally hit a key combination to hide them?

    Short re - install to fix, I don't know how to get back them! Should I just re-install?

    Any help would be appreciated!

    Thank you!

    Ben

    Ben,

    We do not display > show/hide edges, are we?

    Edit: I think that we are.

  • missing fonts CS4 script works does not in CS5?

    Hi, my police lack script is working in CS3 and CS4, but does not not in CS4.

    I don't know why, any help please.

    Sam

    Object model has some changes in CS5.

    So use the code below in the upper part of your script.

    app.scriptPreferences.version = 6.0;

  • Acrobat does not my CS5 installation

    All,

    I searched here, in the forum of Acrobat, too and the people of Acrobat all raised their hands and keeps me coming back here.

    I have Photoshop CS5 Extended and CS4. Acrobat Pro comes with CS4. For some time, I was not able to open a PDF file when the software CS4 or PS does not work. I get a message of osteonecrosis of the jaw on the screen: "Acrobat has been installed as part of a suite. To open a document you must run another software program. "(I do not have this second sentence quite right.) In my view, that is not the intention of Adobe when they included the Acrobat software.

    I downloaded the free player, too.

    Suggestions to make this work?

    Win7 64 - bit OS, lots of RAM, i7-920 processor.

    jonathan7007

    I get a message of osteonecrosis of the jaw on the screen: "Acrobat has been installed as part of a suite. To open a document you must run another software program. "(I do not have this second sentence quite right.)

    You are misunderstanding and indeed be wrong. It tells you that you must run another program from the suite to serialize Acrobat. However, that never happens in your case because activation does not stick. This could be something permission issues to problems with your hard disk (with a SSD by chance?). Definitely make sure to run as administrator at least once to activate properly and also check your permissions or security tools such as virus scanners which can interfere.

    Mylenium

  • LR3 preferences does not PS CS5

    I upgraded from PS CS3-> CS5 and LR 2.7-> 3 by purchasing the CD from Adobe. I installed LR 3, then of CS5. Then uninstalled CS3 to make more space on my laptop.

    While in LR, when I try to do a Photo | Edit in Photoshop, LR does not see ANY Photoshop in LR2 or LR3. Edit in Photoshop and all the Open fusion functions on this menu drop-down lists appear in gray

    I uninstalled LR2 and LR3. Then re-installed LR3. Same problem of grayout - LR is not that PS5 PS is available.

    How can I fix it?  It drives me crazy.

    TIA,

    Georgette

    Reinstall the CS5. When you have removed CS3 the uninstaller removed some necessary entries of CS5.

    Rich

  • Wind of the filter does not properly - CS5

    Hello

    Maybe because its Friday, but for some reason my wind filter is not create the "plotters" or "trails" that I'm used to seeing.

    My goal is to create a movement on white text effect.  "Tails" do not grow in length when duplicate filter on & more as it should.  What I am doing wrong?

    Example:

    This is the text after the filter is applied once.

    Test1.JPG

    Here is an example after the 3rd time of application of the wind filter.

    Test2.JPG

    As you can see, the streaks are still in the text. It does not create fine streaks that I need.

    Probably I'm missing something obvious, but I can't find a solution to this anywhere.

    Thank you!

    -CM

    Bright pixel is blown out in the dark. See the thread: trouble with wind tool.

  • My computer does not recognize my CD of CS4 so I can install it. What should I do?

    I recently had my Mac Pro crash and bought a new hard drive. I try to install CS4. It does not recognize the Application CD and it just keeps spitting the drive. I was able to install CS3 from my old discs very well. Any ideas on what I can try?

    Too bad.

    Figured it out.

  • CS6 Bridge does not recognize the videos but CS4 only

    Hi forum,

    My copy of Bridge CS6 suddenly stopped showing a preview for video files image and does not play the two.  Lightroom 4.4 and Lightroom 5 also do not recognize the video files (in .mov, of .avi, clamps to m...).  My Lightroom used to have no problem playing them.

    Bridge CS4 can see and play as usual.

    I'm running OSX 10.8.5 have purged my cache in Lightroom, uninstalled and reinstalled video, updated Quicktime.

    You need to reset the preferences.  Hold down the option key and launch Bridge.  You will get a window to reset.

  • Any Composition AE (dynamic links) and a text does not appear in the first (CS4)

    I have an AE comp I did with a few credits a few weeks which was 20 seconds ago. Now, I go back to edit it - done long 52 seconds (Comp changed settings), I increased the length of each text box appears a little longer; then I also copy & paste a text layer and put it between the 2nd to last and the last layer of text.

    Then I go and copy/paste about five more layers that all go behind what I had before - in my AE comp I also put the other. I edited all the layers of copied text and type in all that much good.

    I have a background with text on top of that. The background is precomposed and then all text layers in the final composition.

    When I go to the first I see * some * of the changes immediately.

    When I go to the for first now to watch, all changes are applied until the last layer of text I've had since a few weeks ago - including all changes made to these layers as length, font and size, as well as the text layer, I put between the last and the 2nd to the last layer.

    But that's it - once the last layer before is played, no layers of text appear, but the background is perfectly well yet, everything as it should.

    In AE, it plays well and looks great.

    What I am doing wrong? How can show in AE but not first - if the background shows?

    I went to the AE and has one of the layers of this latter text to see what he would do in the body and he hid the background well, but the text still does not appear in the body but in AE.

    Police is still - Adobe Caslon Pro

    My system:

    Windows 7 Pro (64 bit)

    Intel Core i7 980 X 3.33 GHz

    Drive system 750Go

    2 TB disk Media

    12 GB memory

    GeForce GTX 470

    Running Adobe Production Premium CS4

    AE version 9.0.3.8

    Body version 4.2.1

    Any idea would be appreciated!

    Thank you!

    Delmar Penner wrote:

    I changed it to the 3D and moved a few around closer - watched from top, right, left, back... Yes, all the different points of view and could not see anything wrong.

    In fact, the need to use the 3D is not very apparent in this model.  I would use 3D unless there was a reason to do so.

    Delmar Penner wrote:

    ... everything up to "Other credits" do not appear...  I noticed that there is the kind of grid with the blue symbol just in front where I name the layers - what does it means? It's all those who do not have their appearance... Any connection?

    Indeed it is!  Did you by mistake guide layers, not the text layers.  Here is their description:

    http://help.Adobe.com/en_US/AfterEffects/CS/using/WS3878526689cb91655866c1103906c6dea-7e76 a.html

    .. .and here is more about them:

    http://community.Adobe.com/help/search.html?q=guide%20layer&HL=en_US&LR=en_US&l=AfterEffec ts_product_adobelr & site = aftereffects_cs5_all & auto = 1 & Filter = 0

  • SN does not recognize CS5 10 new computer Windows

    Hello

    I have a new computer Windows 10. Try to install CS5. Installation is OK, but my SN is not recognized. I followed the instructions and found in my account. CS5 is an update for CS3 (2012), CS2 (2005) and the original. I have the SN for al of those.

    Maybe I used the English version before. Do not remember. The new facility is french. Any difference?

    Y at - it a procedure to follow?

    I noticed another strange thing: my Adobe ID password has 14 letters and numbers (no spaces, no special characters), but when I start the PS, my password ID is not valid, because only 12 characters are recognized. Is this a mistake?

    Thanks for your help,

    I now use the evaluation version.

    Please visit: https://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    I hope this helps.

    Concerning

    Megha Rawat

  • Setup does not initialize, CS5 Web Premium Mac OSX 10.7.3

    OK, I got a trial of Dreamweaver 5.5 on my Macbook which has expired. I uninstalled and now I am trying to install our web premium cs5. Error, "Installer could not initialize".

    Downloaded the Adviser for help, it says there is no problem.

    Any ideas?

    Rich

    Do not install the application on the netwrok such that there could be some network issues that you might face. Therefore, lets take a machine with DVD and copy the contents of the DVD on the desktop and then back on the machine you want using the flash player. Try to install CS5 and check if that helps.

  • BrowserLab does not Dreamweaver CS5

    Hello

    I use Dreamweaver CS5 and have already been able to connect to the Browserlab online to test a page layout in different browsers.

    I use a Mac platform.

    It seems to no longer work. It is used to load the browserlab site in the browser and then download the browser options so I could see the different models.

    I'm not aware of any change I made to Dreamweaver. Can you help me?

    Thank you

    Make sure that your Dreamweaver is updated with the 11.0.4 update (build 4993).

    You can go to help > updates in Dreamweaver to check and install the update or click here to download for a manual installation:

    http://Adobe.LY/DWUpdates

    If you're still having problems after the update, make sure to answer the question of Marc in as much detail as possible.

    Kind regards

  • The root site links does not work; CS5.5.

    My links do not work when I put my files on the test server. I test on a test server and I can't really go coding every link I have to update the old current site.

    How to make relative to the root links site work in DW and server? This article seems close and I think that the way in which my hosting is set up, this is what causes the problem. That is, I have a few sites in the same package deal with my hosting company. Some are areas of the add-on and some are subdomains; don't know the technical difference between either but he did cause hell to set up sites.

    My current root directory includes public_html / that article condemns; However, I can't work without this site. I noticed that my navigation bar runs from the first page, click, but when I visited another page in the index, I am unable to navigate to the index page again in the navigation bar. It seems to be adding whatever page I'm on the path. Say for example I am on concretepokerrepair.co.uk/bespoke.php and I click on 'home' I get 'concretepokerrepair.co.uk/bespoke/index.php '; how weird!

    Any ideas?

    Get it; was an old file .htaccess on download folder my pictures.

    The navigation bar has been fixed by adding a "/" before the initial directory.

Maybe you are looking for

  • Satellite R15-S822: need drivers for download

    I got a laptop / Tablet above, and Ive had to format a bad virus (my fault).I came to toshiba to look for the drivers but found nothing for this bad machine...Does anyone know where these can be found or if there is a cross-reference on this model?Th

  • New user: stop translates zeros unwanted data collection.

    Hello forums OR. I was hired by my University to of been research and started using labVIEW 2010 last week. I have had some success so far, but have met a few bugs that I don't know how to fix. My front panel has areas of entry of the user for the in

  • WRT120N & iPhone 3GS

    I have a WRT120N that is connected to a modem broadband cable. I have my desktop connected via a cable to the WRT120 and which works very well. However, I am unable to connect to the WRT120N with iPhone. I get the message: unable to join the network

  • 6 ESXi and broadcom/qlogic 57800 errors in vmkernel.log

    The construction of a new host for ESXi 6. With the help of Dell custom ISO and then put to date with the latest patch. Have card 57800 2x10GB and broadcom 2x1GB (now qlogic). Firmware is the last 7.12.whatever and driver in vmware also seems to be l

  • Can't boot from USB in BIOS FRIEND

    Well, yesterday, I decided to move from Windows XP SP3 to Windows 7. I then downloaded a file ISO of Windows 7 from Digital River and made a bootable USB key with it using Windows 7 USB/DVD Download Tool. Then I put the USB in my old pc to boot from