I'm currently working on a Creative Suite Extension, which will show a collection of images on a panel (InDesign, Photoshop and Illustrator).
Currently I'm using Photoshop CS5.1, Flash Builder 4.6 and Extension Builder 1.5 on my windows machine.
This is the code:
<?xml version="1.0" encoding="utf-8"?>
protected function initializeHandler():void
var app : com.adobe.photoshop.Application = com.adobe.csawlib.photoshop.Photoshop.app;
myLabel.text = app.path.nativePath;
myLabel.text = "app.path was null";
<mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
On my Windows machine myLabel shows the installation directory's path. On our Mac app.path is null, so it does not work.
I have tried many different approaches to solve this, but it doesn't work yet. Here are some ideas of what I tried so far:
- Put a timer in the initializeHandler, wait 10 seconds and try to get the path then (not a good idea and app.path is still null)
- Put a button on the panel that executes the initializeHandler instead. (app.path is working, but I need this to work without user interaction).
Can somebody enlighten me please?
Btw. I'm a developer trainee so it is likely that there is a simple solution or an obvious mistake, feel free to point them out.