ScriptUI openDialog not working downgrading from CS5.5 to CS4

So here is my newest bit of fun.  The scripts I have been writing have been in CS5.5, but I was informed today that they need to run on CS4.
Most everything seems to be working, except one critical piece. Here is  a quick summary of what I am doing. 
I am opening a window that has two text boxes and two buttons.  The first button opens up a file dialog box that lets the client choose where their XML file is located.  When they select it and click ok, it populates the first text box with the path. 
The second button opens up a folder dialog box that lets the client choose the location of their images folder, and when they click ok, it populates the second text box with the path. 
Everything works peachy in CS5.5.  But when I tried it in CS4, this is what it is doing.  When I choose a file and click OK, it is populating the text box with the word "File".  When I choose a folder, it is populating the second box with the word "Folder"
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 Folder("~/My Documents")
     tfo = tfol.selectDlg("Get Folder");
     if (tfo != null)
          e3.text = tfo;
          tfo = tfo.fsName;
Like I said, this is working fine is CS5.5, but I need to know what is different in CS4 and how to get it to work.
Thanks in advance for all 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 with the console open. You'll see that File is printed. So tf is not a string but a file object. Use e2.text = tf.fsName to display the file's full path name or e2.text = tf.name to show just the name. The same applies to the other function, the one that shows Folder instead of the folder's name.
Peter

Similar Messages

  • SWFs published from CS6 do not work, but from CS5 they do

    I have recently begun learning how to create animations in Adobe Flash. I've been using Flash CS5. After creating my animations, I would embed them in Microsoft Powerpoint as shockwave flash objects. I would then send the powerpoint to my dad through dropbox; everything worked great.
    Then I was able to install Flash CS6. I continued saving them as CS5 projects to be consistent. I would still publish them as shockwave objects and embed them on powerpoint like before. On my computer, they all worked fine.
    I now have a powerpoint that has a combination of videos from both CS5 and CS6 on different slides (though they're all saved as CS5 files and all embedded into my ppt). When I send the ppt to my dad, however, the newest videos don't play on his computer.
    The old ones work fine for him, but the updated animations are shown in the powerpoint as black boxes, and when right-clicked, have the greyed-out text 'Movie not loaded' with no other options. In edit mode (aka when the powerpoint is on the normal, editable view) the old animations look perfectly normal, whereas the new ones are white with a black 'x' across them.
    I've scoured the web for answers, but CS6 is so new that nobody else has seemed to come across this problem. I don't know if it's a bug or if I'm doing something wrong. I also don't know if it's a problem with flash, shockwave, or powerpoint.
    It doesn't make any sense to me, since the CS6 animations are still saved as CS5 and shouldn't be treated any differently by powerpoint. This is especially true since the animations play on my computer and not his!
    Thanks for the help,
    Emily

    Did you ever solve this one?
    Would be nice to know.

  • PC crashed. CD-Rom not working. Downloaded CS5 Web Premium but not able to install. Please Help. Help.

    PC crashed. CD-Rom not working. Downloaded CS5 Web Premium but not able to install. Please Help. Help.

    I had problem with my CD-rom, it not able to open. On top of that recently my PC crashed.
    I managed to install other software, but not able to install CS5 Web Premium.
    Ive downloaded the electronic version via Adobe Downloads, but not able install it.

  • Dc7700, window7, machine speaker not working. migrating from window xp to 7

    dc7700, window7, machine speaker not working. migrating from window xp to 7

    Hi:
    Just download and install the latest Realtek HD audio driver from the Realtek site.
    Accept the agreement. Download and install either the first or second driver on the list depending on whether you installed the 32 or 64 bit version of W7.
    http://www.realtek.com.tw/downloads/downloadsView.​aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownT​...
    Paul

  • Saving down from CS5 to CS4 cross-platform

    Working on a PC, I am saving down from CS5 to CS4, exporting as an idml. The client is using CS4 on a MAC. When the file opens, the Master Page content is superimposing over the content of the page. Help!

    Hi Bob and thank you for your help.
    The answer to your question is yes. But now I have more information:
    - I opened the idml file on my PC and I see the same thing as my client who is using a MAC.
    - It occurred to me that my client created the original ind file himself (on a MAC) then sent it to me to work on.
    - BUT my client's ind file was a originally a Quark file converted to InDesign CS4.
    - I just completed another project for the client but I created it from scratch in CS5 then saved as an idml file so his MAC could read it. He had no problem with the idml file.
    Judy
    From: BobLevine <[email protected]>
    To: Judy Schultz <[email protected]>
    Sent: Mon, Sep 13, 2010 12:46 pm
    Subject: Saving down from CS5 to CS4 cross-platform
    Is CS4 fully patched to 6.0.5?
    Bob

  • Pen Pressure not working in Photoshop CS5.1

    Hello,
    I've looked at a lot of questions and answers concerning pen pressure in this forum, and I've tried a lot of things to fix this problem. I have a Genius MousePen 6x8 and use Photoshop CS5.1. It's been a while since I used my tablet, but it used to work before. I rebooted my computer a while ago, so I installed the new driver from the Genius website. The tablet is working fine, even the pen pressure, but for some reason it just won't work in Photoshop. I've tried to fix it by resetting the Photoshop settings by using the Ctrl+Shift+Alt, I've reset the brush tool, I've played around with the brush options and nothing has worked.
    Here is the image of the pen pressure working:
    And here is the image of the settings for the brush and the pen pressure not working:
    Thank you for your time!

    Your tablet driver isn't reporting pressure correctly.
    The knockoff tablet drivers usually need to be revised for each new version of Photoshop (and we have no idea why).
    Contact your tablet maker to see if they have updated drivers to fix their bugs.

  • CS6 Three-Way CC not importing setting from CS5.5 Timelines or from Saved Presets from CS.5.5

    Hello,
    I had created two presets for the CS5.5 Three Way Color Corrector that I use in almost every project for dealing with sun shadows and hightlights on talents's skin and they no longer work in CS6.  I've tried loading the old project/timeline/sequence into Premiere CS6 but the TWCC just acts like it is at default settings. No changes to the video at all. 
    I also had saved my two TWCC settings as presets (from CS5.5) to the hard drive to I would not loose them.  I tried reloading those presets into CS6 but same problem.. they do nothing now.   I guess no one checked to see that the new CS6 TWCC was backwards compatible with CS5.5.   Major problem when loading / converting cs5.5 timelines to update client's projects.   Adobe, please take a look at this and fix as soon as you can.  Thanks!  Wayland
    Version info:
    CS6 Cloud (last update as of friday Sept. 28, 2012)
    CS5.5 Master Collection (previous version - now uninstalled)
    Windows 7 Ultimate 64bit

    Hi Jim,
    I've spent the better part of the day trying to redo what I had before and frankly the new TWCC sucks!  The previous one was sooo much better.  I can't even get close to what I had before. Many of the controls show up when you select 'show' but have little or no effect on the real video.  I wish I could just delete the current one and replace it with the old one.  If I still had CS5.5 I'd try that.  Not happy at all.  I'll be up all night trying to catch up due to time wasted on this stupid redesign of the TWCC as I have a ton of work due tomorrow. 
    Thanks for the reply and Best Wishes,
    Wayland

  • Soundcard does not after downgrade from Vista to Xp on Equium L350

    Hi I have an Eqium L350 Laptop and i just recently downgraded from Vista to XP.
    All other drivers work fine apart from my Sound Card.
    Does anyone know where to get the drivers i need for my laptop?
    I know what the drivers are called
    VIA AC'97 Audio Controller (WDM and SIS 7018 Audio Driver
    Only problem is i dont know what ones work with my Toshiba L350-10L
    There is different versions of these drivers.Does anyone know anyone which one it is?
    Thanks in advance :)

    Realtek do not have the sound card drivers are you sure it is a Realtek card?
    I have seen L350 -10L models with the Realtek ALC268.
    But i have installed the Realtek ALC268 Audio Codecs and when i check on Driver Detective and Driver Max it displays the ones i mentioned when i started this topic.
    If you can could you maybe find me a link to both drivers that will install and work with my model of laptop from Toshiba if it is not too much trouble for you?
    Thanks alot in advance :D

  • Ctrl and left click not working in DW CS5

    When Im working in design view for some reason my links are not working when I press ctrl and left click. To make them work I have to right click and select follow link.
    Its not a major problem because I can still carry on, but its annoying!

    Mr Construction wrote:
    When Im working in design view for some reason my links are not working when I press ctrl and left click.
    I presume you're talking about Live View, because links don't work in Design view.
    One thing you can try is selecting View > Live View Options > Follow Links Continuously, or select the option from the Live View Options menu in the Browser Navigation toolbar.
    It works only for the current tab, but is useful if you're following a lot of links.

  • My 3D is not working in Photoshop CS5. All of the options are greyed out

    Hi,
    I just installed the photoshop CS5 but find out my 3D is not working, all of the options are greyed out. I have checked on the openGL menu in preference but still not work. I have core i7 and intel HD graphics 3000 with up to 1760MB dynamic video memory. please help

    Is the active document RGB?
    Could you please post a screenshot with the pertinent Panels/Menus visible?

  • The feature "Save as" is not working in Photoshop CS5

    Hello, I've downloaded Photoshop CS5 in trial mode but the "feature" "Save as" and "Save" are not working, I can't save my work, is it a restriccion for being in the trial mode?. I'm using Windows XP sp2 with 1.5 Gb RAM, 100 Gb HD and 2.6 Ghz Intell processor. Before the Photoshop CS5 I had installed the CS4 Suite and was working perfectly well. Could you help me with this?.
    Thanks
    Efraín Escamilla Guido
    México City
    [email protected]

    The trial version is the same as the full version except
    for the 30 day limitation.
    I think on windows xp you need sp3 for cs5 to work as expected.
    Anyway that's what is says here:
    http://www.adobe.com/products/photoshop/photoshopextended/systemreqs/
    That may not be the problem, but it's a good place to start.
    Also it's not a good idea to post your email on the forums.
    MTSTUNER

  • Downgrade from CS5.5 to CS5

    Is it possible to downgrade and use CS5 to open files saved in CS5.5?  I think there is a major bug in AME CS5.5.
    Thanks

    Yes, you can open them.... at least simple projects, anyway. It'll ask you to save a new copy of the project with the _1 attachment, like it does going from CS5 to 5.5... I've successfully gone back to CS5 with a 5.5 project when I had issues with 5.5 giving me a successful export with corrupted video drivers (since fixed that problem, and it wasn't a problem in 5.5... it was a problem on my system).
    However, as shooter says, I wouldn't recommend it as best practice, and I wouldn't be surprised if some of your bigger projects would end up getting corrupted or missing bits of information...

  • "Open with" in Windows does not work for Bridge CS5

    When I right click on a picture to open it with Bridge CS5 nothing happens. Does anybody know how to fix this?
    It worked with older version of Bridge and it stopped once I installed the CS5.
    I have Windows Vista.

    salwaph wrote:
    I found out that you can "Browse with Adobe Bridge CS5" when you right click on a folder. However this option is not available for single files. So problem is kind of solved. But if anyone knows how to open single file in Bridge please let me know.
    So have you opened the fly out menu that lists the open wiht programs?  It has a option down on the bottom to set other "open with" options such as open with Bridge.  Does this not work? 
    It works one single files on my machine.

  • Face Time not working consistently from Kabul, Afghanistan.  Any ideas?

    I am in Kabul, Afghanistan and have an iPhone 4S that I can Face Time with my family successfully.  They are in the US.  I am calling their iPhone 4 and Macs.  When I try calling other iPhones and/or Mac's (also in the US), I get the error message that their phones are not available.  From email exchanges I have made, with the parties I am trying to call, it appears that they have done everything they need to do to Face Time successfully.  In fact, they are able to Face Time with everyone else but me.
    Where I am located, in order for Face Time to work, I have to have the wifi turned on, iPhone in Airplane mode, and cellular services turned off.  Any other combination will not work.  The fact that I can Face Time with some people tells me that this procedure does work.
    The only difference I can see exists in my Contact list.  People that I can face Time with, have a "Movie Camera Icon" on their contact page Face Time button.  Everyone else does not.  Does this mean anything?

    Hi there lilalex2,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    -Griff W. 

  • Design View not working in DW CS5

    I have one .html file that displays the following in Design View:
    The code is all there, and if I view it in Live Code then all the content is visible. Here is what Live View looks like:
    Here is the current web page: Pennsylvania Philharmonic Subscription Series, spring 2015
    I tried "getting" the still-working file from remote, but the issue.
    I saw similar posts that recommend turning off "Head Content", but it was never on and that doesn't help. I have shut down, re-booted. Using Windows 7.
    All my other files for this site are fine. Just this one.
    Any help is appreciated!!

    Those yellow tr td tags mean your table code is malformed. Browsers can forgive some html errors and certain browsers are better than others at guessing what you meant when they run into problems. DW is showing you that you have structural defects in your code, which is one of the biggest causes for display issues in the browsers.
    Visit http://validator.w3.org to get a complete listing of your html errors and clean them up.

Maybe you are looking for

  • How to make Firefox open the search results in a new tab instead of on top of already opened page?

    When I do the search through the search window on the top right corner, the search results open on top of the page I'm viewing at that moment, instead of in a new tab, so I have to keep remembering to open a new tab before each search. How do I chang

  • Launch Supply Chain Planning Process - Significance of Anchor Date

    While Launching plan, there is a parameter Anchor date. It defaults to current. We can change this to any past date. What is the significance of this? Our client has a requirement - They want to see the forecast demand for current month (though today

  • 50L4300U Camera for Skype

     Hi there, I just bought 50L4300U and looking for camera. Can you, please, give me some compatible options? I'm hoping that TALK-7291-T is not the one and only BR

  • New Computer old Mini and No Idea What to do...

    -I have an old Gen One Ipod Mini... -I have a newer Dell Computer... -I plug the two together and nothing but a gong sound in my speakers... -No icon in next to my C drive in XP Windows "My Computer"... -Can't see any signs of the unit in ITunes... -

  • Public folder migration difference what Outlook client see

    I have successfully migrated  public fodders from Exchange 2007 to Exchange 2013. Problem that I`m seeing is  what Outlook client see. I have two types of clients : Windows XP + Outlook 2007 Windows 7 + Outlook 2013 Outlook 2013 client see  Public fo