• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop Plugin Panel creation - accessing the file system

New Here ,
Mar 27, 2010 Mar 27, 2010

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?

TOPICS
SDK

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Mar 28, 2010 Mar 28, 2010

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 ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 23, 2010 Apr 23, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 24, 2010 Apr 24, 2010

Copy link to clipboard

Copied

LATEST

I will wait for CS5 then.

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines