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

Save current Workspace

New Here ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

Hello,
is there a way to save the current Workspace?
cant find anything about saving workspace in my documents :-(

thx
TOPICS
Actions and scripting

Views

583

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
Valorous Hero ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

From scriptlistener.
Paul.
You will have to change ('Nm ') to ('Nm space space')
and ('Mk ') to ('Mk space space')
this forum strips some spaces.

saveCurrentWorkspace("fred");

function saveCurrentWorkspace(workspaceName) {
function cTID(s) { return app.charIDToTypeID(s); };
function sTID(s) { return app.stringIDToTypeID(s); };
var desc6 = new ActionDescriptor();
var ref3 = new ActionReference();
ref3.putClass( sTID('workspace') );
desc6.putReference( cTID('null'), ref3 );
var desc7 = new ActionDescriptor();
desc7.putString( cTID('Nm '), workspaceName );
desc7.putBoolean( cTID('Plt '), true );
desc7.putBoolean( sTID('keyboardCustomization'), true );
desc7.putBoolean( sTID('menuCustomization'), true );
desc6.putObject( cTID('Usng'), sTID('workspace'), desc7 );
executeAction( cTID('Mk '), desc6, DialogModes.NO );
};

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 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

ok, thx for the quick answer!
This helps a little, cause i can copy paste it :-)
But i would be very happy if you are able to explain the code to me.
Maybe with some little comments or something like that?
I'm pretty new to the photoshop scriptings ;-(

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
Valorous Hero ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

Its a liitle difficult to explain as ScriptListener code is generated by Photoshop itself with the ScriptListener plug-in installed.
There is information in the docs on how to install and where, but not much info on the code it produces.

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 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

oh ok, is there no Javascript Syntax/Variable what ever for the workspace?

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
Valorous Hero ,
Apr 30, 2008 Apr 30, 2008

Copy link to clipboard

Copied

LATEST
Not that I can find, maybe there will be in the SDK (Software Development Kit)
http://www.adobe.com/devnet/

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