Skip to main content
Participating Frequently
March 27, 2010
Question

Photoshop Plugin Panel creation - accessing the file system

  • March 27, 2010
  • 1 reply
  • 1831 views

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?

This topic has been closed for replies.

1 reply

mfalAuthor
Participating Frequently
March 29, 2010

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 ?

Tom Ruark
Inspiring
April 23, 2010

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.

mfalAuthor
Participating Frequently
April 24, 2010

I will wait for CS5 then.

Thanks