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

undoing a script

Explorer ,
Dec 18, 2008 Dec 18, 2008
Hello all,

in CS4 I can make the entire script undo in one step by loading the script into a string and starting it with
app.doScript(myScript, undefined, undefined, UndoModes.ENTIRE_SCRIPT, "undo my script");

Works like a charm.

I never tried this in CS3 but I vaguely remember a discussion insinuating it should be possible there as well. Does my memory deceive me? Or can this be done in CS3?

Thank you
Gerald
TOPICS
Scripting
854
Translate
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
Participant ,
Dec 18, 2008 Dec 18, 2008
Yes -- your memory does deceive you. Although it may be that your memory has merely become fuzzy. There was indeed talk of a feature like this for CS3 but it was withdrawn very late because of complexity issues for which there was insufficient time to do the job right.

Dave
Translate
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
Explorer ,
Mar 20, 2009 Mar 20, 2009
> There was indeed talk of a feature like this for CS3 but it was withdrawn very late because of complexity issues for which there was insufficient time to do the job right.

This feature did make it into PS/CS3 as Document.suspendHistory. I've never had
the need to use it, though.

-X
Translate
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
Explorer ,
Dec 19, 2008 Dec 19, 2008
Thank you.
It seems a fuzzy memory is something I increasingly should get used to ...
Translate
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 ,
Mar 20, 2009 Mar 20, 2009
I have heard of "loading a script into a string" but what does this mean? How do you do it?
Translate
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 ,
Mar 23, 2009 Mar 23, 2009
LATEST
I'm not sure what you're referring to, but this might be it...

file.open("r");
string = file.read();
file.close();

--
Harbs
http://www.in-tools.com
Translate
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 ,
Mar 20, 2009 Mar 20, 2009
I'm referring to CS4. How do you load a script into a string in CS4?
Translate
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