No CS6 in Extendscript Toolkit

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

eyescream

No CS6 in Extendscript Toolkit

Post by eyescream »

Hi,
I'm having a bit of a pickle on my workstation at work.. I previously made some simple scripts for CS5 in extendscript (java), just simple scripts like changing the Grid Size in "transparency & Gamut" from solid to checkered that I map to a button on my Wacom.. but now my company upgraded to CS6 and my scripts don't work anymore and if want to reprogram the scripts in Extendscript (3.8.0.12) I can't select Photoshop CS6 from the dropdown menu.. What I do get is Photoshop CS5, Illustrator CS5,... (which our tech team kept on our MACs for some reason) but not the CS6 suite.. so when I program the script and run it, it asks if I want to open CS5 instead of using the already op CS6

here is an example of the script I made:
Code: Select all#target photoshop

if(app.preferences.gridSize == GridSize.NONE)   
    {
    app.preferences.gridSize = GridSize.SMALL;
    }
else
    {
app.preferences.gridSize = GridSize.NONE;
    }
 
app.refresh();
app.bringToFront();

I checked to macs in another room (our room where we get our "lessons") and there everything looks right...

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

No CS6 in Extendscript Toolkit

Post by Mike Hale »

Unless it is a Mac issue, I think it's an installation problem. Both CS6 and CC are listed in ESTK on my Windows system.

And that script runs fine for me. Or is that not one of the scripts you want to edit?
eyescream

No CS6 in Extendscript Toolkit

Post by eyescream »

yeah that's one I want to use.. guess I'll have to get the tech guys to reinstall extendscript cause I don't have admin permissions.. and that will take like forever like usual (we had cs6 laying around for 6 months untill they finally decided to install it)... bummer
eyescream

No CS6 in Extendscript Toolkit

Post by eyescream »

maybe I could use applescript since those don't need admin permission to run.. does anybody know how to access preferences in photoshop using applescript, I can't figure it out using the documentation

update: figured it out:
Code: Select alltell application "Adobe Photoshop CS6"
   if grid size of settings is none then
      set grid size of settings to small
   else
      set grid size of settings to none
   end if
end tell
Mike Hale

No CS6 in Extendscript Toolkit

Post by Mike Hale »

I thought your problem was with ESKT, the editor/debugger. You don't need admin rights to run javascript in Photoshop.
eyescream

No CS6 in Extendscript Toolkit

Post by eyescream »

yeah I know but I was just thinking it would be a lot less painfull if I could use the scripts in applescript.. If I want to get Extendscript for CS6 I have to get permission from my superior, he has to get permission from his superior, he has to get permission from his superior and then they will ask the tech guys to look into it, they will go like: and after months of waiting and mailing nothing will happen.. so I thought if I could get the scripts running in applescript I could save myself a lot of time and pain.. (yeah I work at such a place where you get punished for wanting to work faster and better)
Mike Hale

No CS6 in Extendscript Toolkit

Post by Mike Hale »

Maybe I misunderstood. If the problem is you can't change the Photoshop preferences with javascript I don't think applescript will help. User permissions could prevent changing the preferences but applescript would honor those permissions and also not change the settings.

Again you don't need admin permissions just to run javascripts in Photoshop.