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

New Photoshop error on old script

New Here ,
Apr 04, 2020 Apr 04, 2020

Copy link to clipboard

Copied

Hello All,

I'm getting the script error PS 21.1.1 using os10.15.3. Any idea why?

Regards

David Pastirchak

Error in scriptError in script

TOPICS
Actions and scripting

Views

287

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
LEGEND ,
Apr 04, 2020 Apr 04, 2020

Copy link to clipboard

Copied

The message seems clear enough. The value of “pixels” is 0.000105. Read the script to find out why it ends up set to that. You didn’t share anything that would help us tell you that. 

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
LEGEND ,
Apr 04, 2020 Apr 04, 2020

Copy link to clipboard

Copied

Sorry maybe the value of mw. Anyway the script needs debugging and fixing. 

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 04, 2020 Apr 04, 2020

Copy link to clipboard

Copied

Ok, This same script works on Photoshop 2017.1.3 OS 10.13.6. So I'm assuming I have to adjust my script.

 

this is the get pixel command.

 

--  get width and height into variables

tell current document

set mw to width

set mh to height

end tell

 

Any clue?

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 05, 2020 Apr 05, 2020

Copy link to clipboard

Copied

LATEST

Here is the script working on a older system. What has changed in photoshop not allowing me to use this script with the lastest OS and Photoshop version?

 

Script working.png

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