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

Print Causing App to go to background

Contributor ,
Oct 25, 2016 Oct 25, 2016

Hello Everyone! It has been quite some time since I have been here I hope everyone is doing well and I appreciate all the help I have gotten on here.

I have just recently upgraded to creative cloud from 6. I have a script that uses the print function to print some separations into a folder. For some reason with creative cloud, after the print function executes, Illustrator will go to the background, meaning the application will not be active, and the last application I touched, such as a web browser will be focused instead.

Is there a simple way to keep Illustrator active? I did not have this problem with 6. I noticed alert messages or changing the screen mode will make it active but is there a less intrusive way? I would rather just click to keep it active than to deal with that crap, haha.

Thanks everyone!

TOPICS
Scripting
414
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

correct answers 1 Correct answer

Community Expert , Oct 26, 2016 Oct 26, 2016

last case scenario, you can use BridgeTalk.bringToFront(app) or illustrator.reveal() it'll be convoluted but I think it should work.

Translate
Adobe
Valorous Hero ,
Oct 25, 2016 Oct 25, 2016

Hello!

Wow this is strange, have you tried to do other things in Illustrator to try and bring the focus back other than alerts? I would try to make a new blank dummy document and close it without saving to see if that'd work.

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 Expert ,
Oct 26, 2016 Oct 26, 2016

last case scenario, you can use BridgeTalk.bringToFront(app) or illustrator.reveal() it'll be convoluted but I think it should work.

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
Contributor ,
Oct 26, 2016 Oct 26, 2016
LATEST

Thanks Guys!!

All solutions work but illustrator.reveal(); seems the least clunky so I will go with that, I added it right after where I use the print functions and it seems to work really well. I appreciate the help as always, and I would have never known about illustrator.reveal(); without it because it is nowhere in the documentation I was looking at lol.

Thanks again and I may be back, I am having trouble with the UI click handlers I used in CS6 to deselect children in one panel when something from another panel is selected. I will make another post here soon if I can't figure it out on my own haha but I will give it a shot first. 

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