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

Open File in Photoshop CC with AppleScript

Community Beginner ,
May 12, 2014 May 12, 2014

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
1.5K
Translate
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

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.

Translate
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

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.

Translate
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

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?

Translate
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
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.

Translate
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

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

Translate
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

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.

Translate
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