Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

How to detect that Illustrator.Application is fully loaded (VB)

Engagiert ,
Dec 06, 2014 Dec 06, 2014

Does anyone have a trick that they use to determine that the app is fully loaded? Is there a method available that I might be missing? I manage most of the time but I'd like to get this problem trapped. Looking for a method available in the Illustrator Scripting API preferably. Within VB Try/Catch isn't working in this instance...

Thank you!   -TT

(CC2014, VB.NET on WIndows 8.1.)

THEMEN
Skripterstellung
1.4K
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

Engagiert , Dec 07, 2014 Dec 07, 2014

So after a bit more investigation and understanding (and some sleep), I came up with some VB code to resolve my dilemma. Here's the code:

Truth be told, my biggest problem was self-inflicted, as I somehow had the VS UI set to throw exceptions even on handled exceptions, leaving pretty much no one to blame but myself. 😞 

imagecollection wrote:

i Should do more with vb as it has more external potential then JS.

let us know how you go.  

imagecollection -- thanks for your reply here. I truly hope

...
Übersetzen
Adobe
Ratgeber ,
Dec 06, 2014 Dec 06, 2014

I've not used VB with illustrator.

But could you test CPU usage?

http://stackoverflow.com/questions/19252388/how-to-wait-for-an-application-to-start-in-vbscript

My other thought would be to open a predefined small ai file. let that start illustrator.

then test for that file?

only quick random thoughts and I have not tested them at all.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Engagiert ,
Dec 06, 2014 Dec 06, 2014

Hi imagecollection,

I think that the link that you provided may have some definite potential. I will investigate and reply with findings.

Thank you very much!

-TT

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Ratgeber ,
Dec 06, 2014 Dec 06, 2014

I Hope it works.

i Should do more with vb as it has more external potential then JS.

let us know how you go.  

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Engagiert ,
Dec 07, 2014 Dec 07, 2014

So after a bit more investigation and understanding (and some sleep), I came up with some VB code to resolve my dilemma. Here's the code:

Truth be told, my biggest problem was self-inflicted, as I somehow had the VS UI set to throw exceptions even on handled exceptions, leaving pretty much no one to blame but myself. 😞 

imagecollection wrote:

i Should do more with vb as it has more external potential then JS.

let us know how you go.  

imagecollection -- thanks for your reply here. I truly hope that you do more in VB, as it gets pretty lonely here on this forum. 🙂  Please let me know if you ever decide to get involved with VB. I'd be happy to help get you started. 🙂

-TT

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Teilnehmer ,
Dec 07, 2014 Dec 07, 2014

It sounds like your in VBA, but in JS there is the BridgeTalk command IsRunning() ( See page 184 if your JavaScript Tools guide. )

If this is any help to you.

isRunning()

BridgeTalk.isRunning (specifier)

specifier A specifier for the target application; see “Application specifiers” on page 191.

Returns true if the given application is running and active on the local computer.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Engagiert ,
Dec 08, 2014 Dec 08, 2014
AKTUELL

Hi Zetta -- Actually, I'm in VB.NET.

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines