Saturday, December 16, 2017

#1 2016-01-31 12:24:31 am

Santa
Member
From:: Land of Oz
Registered: 2006-07-27
Posts: 486

Help required to reduce workspace on Illustrator workspace,, please.

G'day scripters.

I've got a very large, multi-part ObjC Applescript project, that uses a multitude of Apps to print any sort of graphic, that must run unattended, 24/7.

I'm re-wring for the Creative Cloud suite, but after I open Illustrator, and process a file, and close the file, I want to leave Illustrator open, to speed up the processing of the next file.

Trouble is, Illustrator leaves a workspace open, that takes up the whole of the screen. I've tried closing it via Applescript, but while a manual click on the red close button works, it can't be addressed by Applescript.

The Adobe Applescript blurb says at least one workspace must always be open (even tho you can manually dismiss it).

Does anyone know of a way of dismissing the workspace window, or reducing it to a minimum size?

Regards

Santa

Applescript:


tell application "Adobe Illustrator"
   activate
   # NEEDED
   # Code to dismiss, or size reduce, the initial WorkSpace
end tell

Model: late 2014 i7 iMac
AppleScript: 2.8.1
Browser: Safari 601.4.4
Operating System: Mac OS X (10.10)


Just an enthusiastic old fart of an Apple user since the IIe days

Offline

 

#2 2016-01-31 04:22:53 am

Santa
Member
From:: Land of Oz
Registered: 2006-07-27
Posts: 486

Re: Help required to reduce workspace on Illustrator workspace,, please.

Turned  out the answer was right under my nose! There's a 'hide' menu item under the App name, as below. Never thought to look there for a command. Thought such a thing would be under 'Edit', or "View', or 'Window'. Ahh well.

Applescript:


tell application "System Events" to tell process id "com.adobe.illustrator"
               try
                   click menu item "Hide Illustrator" of menu 1 of menu bar item "Illustrator CC" of menu bar 1
               end try
               try
                   click menu item "Hide Illustrator" of menu 1 of menu bar item "Illustrator CS6" of menu bar 1
               end try
           end tell


Just an enthusiastic old fart of an Apple user since the IIe days

Offline

 

#3 2016-02-15 07:06:45 am

ilexxey
Member
From:: Moscow
Registered: 2012-08-02
Posts: 94
Website

Re: Help required to reduce workspace on Illustrator workspace,, please.

Hi there!

Applescript:


tell application "Finder"
           try #1-2.
               set visible of process "Adobe Illustrator CC 2015" to false
           end try
       end tell


Regards, Alex

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)