Command-line PNG export won't work in MacOSX.
I've been trying to setup some bash scripts to export my link hierarchy for Balsamiq, but I can't seem to get the command-line export to work. Here are my symptoms:
- When trying it with relative paths, it flashes a window too quickly to see, then exits. Checking an "echo $?" shows that it returns 5. If I have Balsamiq open already when running this, an error window appears saying that the paths do not exist. This leads me to believe that relative paths won't work.
- When using absolute paths, the program starts, flashes a window, then never exits. I can alt-tab into the app that it opened up (apparently it still opens the application outside the shell despite the command-line invocation) and quit gracefully from the main application menu (there is no window). In the terminal, "echo $?" shows that it returns 0. Unfortunately, there is no png file to be found.
- Although it has been mentioned in other posts, I should mention that I also get the error message "2009-07-04 13:08:18.129 Balsamiq Mockups[997:10b] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'." I tried changing the value of CFBundleTypeRole from "Editor" to "Shell" in Info.plist, but it still gives the same error. I suspect, as indicated in other posts, that this message can be ignored.
- Here is the command used to export:
$ /Applications/Balsamiq\ Mockups/Contents/MacOS/Balsamiq\ Mockups export /path/to/file.bmml /path/to/file.png
Has anyone else had this issue?
Thanks!
Aaron
- When trying it with relative paths, it flashes a window too quickly to see, then exits. Checking an "echo $?" shows that it returns 5. If I have Balsamiq open already when running this, an error window appears saying that the paths do not exist. This leads me to believe that relative paths won't work.
- When using absolute paths, the program starts, flashes a window, then never exits. I can alt-tab into the app that it opened up (apparently it still opens the application outside the shell despite the command-line invocation) and quit gracefully from the main application menu (there is no window). In the terminal, "echo $?" shows that it returns 0. Unfortunately, there is no png file to be found.
- Although it has been mentioned in other posts, I should mention that I also get the error message "2009-07-04 13:08:18.129 Balsamiq Mockups[997:10b] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'." I tried changing the value of CFBundleTypeRole from "Editor" to "Shell" in Info.plist, but it still gives the same error. I suspect, as indicated in other posts, that this message can be ignored.
- Here is the command used to export:
$ /Applications/Balsamiq\ Mockups/Contents/MacOS/Balsamiq\ Mockups export /path/to/file.bmml /path/to/file.png
Has anyone else had this issue?
Thanks!
Aaron
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi Aaron, I have a fix for you to test here: http://www.balsamiq.com/products/mock...
Would you please let me know how it works for you?
-
Inappropriate?I tried it, and now the application closes instead of remaining open, but there is still no .png file exported. When leaving the application open and then running it from the command line, I noticed now that it is trying to open a file named "export", which of course doesn't exist. This leads me to guess that your argument parsing code isn't detecting "export" as a flag.
-
Hi Aaron, can you please copy and paste the command line command you're using here? It all works fine here using the syntax described here: http://www.balsamiq.com/products/mock... -
Inappropriate?I must have been doing something odd last night, because now it appears to work correctly with your new version. Thanks for the fix, that was very fast!
Loading Profile...



