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

Open File in Photoshop CC with AppleScript

Community Beginner ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

Hi,

I'm unable to open an file vial AS in PS CC.

Also the example in the Refeference:

"tell application "Adobe Photoshop CC"

set myFilePath to alias "...."

open myFilePath as Camera RAW with options ¬

{class:Camera RAW open options, bits per channel:eight, ¬

color noise reduction:20, temperature:4200, white balance:cloudy

end tell"

doesn't work.

Any tipps what to do. Is AS in PS CC broken?

Thank'S

Ishan

TOPICS
Actions and scripting

Views

1.3K

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
Community Expert ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

Could you work with JavaScript instead?

AppleScript is not particularly popular for Photoshop automation.

In any case the code you posted does not seem to contain a file path.

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
Community Beginner ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

c.pfaffenbichler wrote:

Could you work with JavaScript instead?

AppleScript is not particularly popular for Photoshop automation.

In any case the code you posted does not seem to contain a file path.

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
Community Beginner ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

c.pfaffenbichler wrote:

Could you work with JavaScript instead?

AppleScript is not particularly popular for Photoshop automation.

In any case the code you posted does not seem to contain a file path.

Yes, I know. I changed the filepath with the 3 points.

It's a code snippet form the Adobe AS reference.

I'm a newbee without any experience in JavaScript. Do you have an example?

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
Community Expert ,
May 13, 2014 May 13, 2014

Copy link to clipboard

Copied

LATEST

If you want to open RAW files with JavaScript I would recommend you record the process with ScriptingListener.plugin and use the resulting code.

It is possible with the Document Object Model, too, though.

To see the properties you can refer to ESTK Help > Object Model Viewer or Photoshop-CS6-JavaScript-Ref.pdf.

openCameraRawProperties.jpg

But if Muppet Mark’s advice applies maybe you can stick with AppleScript for this.

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
Guru ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

Since CS5 Photoshop has been fussy over Finder's File Alias… Try change your myFilePath variable to a string…

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
Community Beginner ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

Muppet Mark wrote:

Since CS5 Photoshop has been fussy over Finder's File Alias… Try change your myFilePath variable to a string…

Interesting. Thank's for your hint.

The code is 1:1 from the Adobe AS reference! I used a string definition without success. But I give it a next try. I'm a newbee.

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