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

Error updating a progress palette window

Enthusiast ,
Nov 23, 2005 Nov 23, 2005
I am updating the progress palette window for each file executed using the fileIterator code that Bob was kind enough to provide. I am updating the status text with the name of each file. This works the first and second time, but on the third iteration I am getting the error:

Processed ( 0 😞 2005-01-12_0026nanaimo%20second%20growth.jpg
Processed ( 1 😞 20050104_0004.jpg
{LiveObject("StaticText").property(0x027f9a58)} is undefined

When I look at the statictext member it no longer has a text field in the data browser.

Has anyone encountered this type of error?
TOPICS
Scripting
707
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
Enthusiast ,
Nov 23, 2005 Nov 23, 2005
I discovered a delay in the adobelibrary1 code, and tried injecting a delay as follows:

dittoStatus.setStatus1 = function( txt ) {
$.sleep( 1500 );
this.status1.text = txt;
}

This helps sometimes, other times the code still fails with the same error.
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
Enthusiast ,
Nov 23, 2005 Nov 23, 2005
I'm a one man thread!

This works:

dittoStatus.setStatus1 = function( txt ) {
this.status1.active;
this.status1.text = txt;
}

The trick appears to be to make sure the control you are updating has the focus.

Rory
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
Enthusiast ,
Nov 23, 2005 Nov 23, 2005
Well, it worked for a while. I am still getting the

{LiveObject("StaticText").property(0x027f9a58)} is undefined

error.
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
Community Beginner ,
Nov 25, 2005 Nov 25, 2005
Rory,

I assume you're playing with the BridgeTalkIterator?

If so, when you add your message to the Iterator queue, the arguments are:

btIterator.addMessage( target, script, filename )

If you include the file name on the addMessage call, it will show the filename in the progress palette for you.

As for the amazing disappearing statictext element, I have no idea how that could be happening from the iterator itself.

Could you post the line(s) of code you are using to update the progress palette? It's possible you are overwriting a key property or method name of the statictext element.

Bob
Adobe Workflow Scripting
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
Enthusiast ,
Nov 27, 2005 Nov 27, 2005
Hi Bob

I am not encountering the problem anymore. It went away when I did a clean reboot of my computer.

Rory
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
Community Beginner ,
Nov 27, 2005 Nov 27, 2005
LATEST
Darn, I was kinda enjoying your one man thread....

Glad it's gone away.

Bob
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