Skip to main content
taravasya
Known Participant
May 6, 2022
Answered

The command "Play" is not currently available

  • May 6, 2022
  • 2 replies
  • 2605 views

I see several similar topics, and I have a little idea why this can happen in different situations. But in my case, something is happening that I do not understand.

My action doesn't want to run from a script. I was try like this:

doAction("3 х 4", "Роскладки");

and like this:

var idPly = charIDToTypeID( "Ply " );
    var desc1306 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref30 = new ActionReference();
        var idActn = charIDToTypeID( "Actn" );
        ref30.putName( idActn, "3 х 4" );
        var idASet = charIDToTypeID( "ASet" );
        ref30.putName( idASet, "Роскладки" );
    desc1306.putReference( idnull, ref30 );
executeAction( idPly, desc1306, DialogModes.NO );

But: The command "Play" is not currently available 

I try with background...

And with layer:

But still no luck (((

I have dissabled Script Event Manager:

 


What can here be wrong?
Thanks!

This topic has been closed for replies.
Correct answer Kukurykus

That was my first thought. I copied 'Роскладки' to name of Set and to code and it worked for me with no problem, so I then suggested something different to try, but it seems an obvious thing was the culprit.

2 replies

taravasya
taravasyaAuthor
Known Participant
May 6, 2022

Hmm.. Looks like this happens because of non latin characters in names of Sets and Actions.

I rename them and script start working.

Kukurykus
KukurykusCorrect answer
Legend
May 6, 2022

That was my first thought. I copied 'Роскладки' to name of Set and to code and it worked for me with no problem, so I then suggested something different to try, but it seems an obvious thing was the culprit.

taravasya
taravasyaAuthor
Known Participant
May 6, 2022

For fidelity of the experiment, I returned the cyrillic names back, and the script stopped working again.
Perhaps it somehow depends on the regional settings of the operating system. I also tried to recode the script file from utf8 to traditional cyrillic compatible on windows win1251, but it didn't help.

Kukurykus
Legend
May 6, 2022

Make sure there's no broken reference to other action, the first one supposedly tries to play.