Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
Here your solution:
var myDocument = app.documents.item(0);
var myPage = myDocument.pages.item(0);
var myTextFrame = myPage.textFrames.item(0);
var myTextObject = myTextFrame.parentStory.characters.item(0);
main ();
function main ()
{
try
{
if (app.selection[0].parentStory.storyPreferences.storyDirection == StoryDirectionOptions.rightToLeftDirection)
app.selection[0].parentStory.storyPreferences.storyDirection = StoryDirectionOptions.leftToRightDirection
else
app.selection[0].parentStory.storyPreferences.storyDirection = StoryDirectionOptions.rightToLeftDirection
}
catch (_){}
}
Thank you M.,
unfortunately I am PC user.
I 've alredy done a windows palette using java script UI but I don't get to link the text inputed with the function I want.
I also would like the palette don't close after pressed OK button.
Sami
Thank you, Eugene, for the answer.
Sami
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.