Jump to content


fw.launchApp() non-functional?

  • Please log in to reply
1 reply to this topic

#1 jfrumar



  • Members
  • PipPip
  • 10 posts

Posted 29 November 2010 - 01:57 PM

Has anyone got fw.launchApp() working in Fireworks CS5?

Here's what I get regardless of the app I try to launch:

>>> fw.launchApp('/opt/local/bin/wget', []): -2147220599

That's from the fireworks console. I always get "-2147220599" as the response.

Has anyone managed to launch an app?

#2 jdunning


    Fireworks Ninja

  • Members
  • PipPipPipPipPip
  • 173 posts

Posted 30 November 2010 - 01:44 PM

>>> fw.launchApp('/opt/local/bin/wget', []): -2147220599

You mean the helpful -2147220599 error code isn't self-explanatory? :|

I think it needs to be an absolute path to the file, starting with a file:/// protocol. On the Mac, I think that includes the home volume's name, so you may need to start with fw.appJsCommandsDir and chop off everything after the volume, to get the right path on the user's machine.

Keep in mind that launchApp doesn't block, so the wget won't have finished by the time the next JS command executes.