Copy link to clipboard
Copied
I am trying to write a plugin that can export content from photoshop .
My problem is setting the export directory from the Panel UI I am creating with Flex.
So far I was able to find some working code for
var fileRef:FileReference = new FileReference();
fileRef.browse();
But my goal is selecting a file or a directory and it seems to me that FileReference() is only used to upload a file.
Then I also found some documentation for the File class that allow a similar functionality but Flex complains that the Type File was not found and I cannot get enough documentation to implement this secondary file browser in my photoshop plugin.
Am I missing something?
Copy link to clipboard
Copied
Ok, the File class is available in Air only... and that might sounds ideal but I cannot visualize Air components as Photoshop Panels... why ?
Photoshop Panel Developer's Guide mentions Flex/Flash projects and not Air projects.
Flash comes with all the web related restrictions which make no sense in a Photoshop user environment.
Does anyone solved this file browsing system ?
Copy link to clipboard
Copied
In CS4 you are running in non AIR runtime. For CS4 I would use jsx (JavaScript) and the File and Folder objects available there from Photoshop.
In CS5 you are running in AIR runtime so your code should work.
Copy link to clipboard
Copied
I will wait for CS5 then.
Thanks