🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
5 messages
5 total messages Started by ddaanntt Mon, 09 Mar 2009 13:49
Preventing Dialogs From Popping Up
#691
Author: ddaanntt
Date: Mon, 09 Mar 2009 13:49
20 lines
1859 bytes
Hello -

I'm sequentially opening, processing, and closing a number of InDesign CS3 documents using AppleScript. Each document uses different fonts so before opening each document I clear out the ~/Library/Fonts folder and load it with fonts for the next document.

Occasionally as a document is opening a modal box titled "Missing Fonts" pops up with the message "The document "xxx.indd" uses one or more fonts which are not currently available on your system. The text will use a substitute font until the original font becomes available." along with a list of missing fonts. How do I prevent this from popping up and disrupting the script? 

      <http://support.adobe.com/devsup/devsup.nsf/docs/51471.htm> says to use
      set user interaction level to never interact which I tried but I get the
      message "Can't set �class UIAc� of application "Adobe InDesign CS3" to
      �constant elnteNvr�." That page appears to only go as far as CS2, so I
      checked the CS3 scripting dictionary which indicates set user interaction
      level of script preferences to never interact When I use this (at the
      Adobe InDesign CS3 application level) no error message appears but the
      Missing Fonts dialog still shows up.





Any ideas on how to prevent this? Thanks very much...
Re: Preventing Dialogs From Popping Up
#694
Author: Olav_Kvern
Date: Mon, 09 Mar 2009 18:19
19 lines
914 bytes
Hi ddaanntt,

In CS3, use:



set user interaction level of script preferences to never interact



The property moved into the script preferences object on the application object. Make sure you set it back to

interact with all

when you're done.

Thanks,

Ole
Re: Preventing Dialogs From Popping Up
#697
Author: Shane_Stanley
Date: Mon, 09 Mar 2009 21:43
6 lines
1396 bytes
Are you using a third-party font manager plug-in? That might be what's
showing the dialog.

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Re: Preventing Dialogs From Popping Up
#600
Author: ddaanntt
Date: Tue, 10 Mar 2009 01:36
9 lines
1046 bytes
Ole -

Thanks, but that's exactly what I have in the script at the moment - in these apparently sporadic cases it doesn't seem to take effect.

Shane -

It looks like none of the plug-ins are third party and I don't have Suitcase or Font Reserve or any of those things loaded, but next time it appears (which shouldn't be too long from now) I'll pay closer attention to the title bar - thanks, hope that reveals something.

Appreciate the input very much...
Re: Preventing Dialogs From Popping Up
#632
Author: ddaanntt
Date: Tue, 10 Mar 2009 19:01
9 lines
1559 bytes
On further review, I see in other forums that I'm not alone with this - it has to do with missing fonts and prompting for whether to substitute the default or to locate the originals.

The only solution I've found offered is the GUI System Events keystroke one which doesn't seem to work for me, and since this script is to be run unattended on any of dozens of Macs in our department if I did get it working for me it probably wouldn't work elsewhere.

For the record, the message is "The document xxx.indd uses one or more fonts which are not currently available on your system. The text will use a substitute font until the original font becomes available." and then presents "Find Font..." and "OK" buttons. I've found maybe 5 or 6 reported instances of this and no one indicates they're using any font handling packages so I'm guessing this is strictly Adobe.

Anyhow, just hoping someone has a magic bullet for this other than a GUI approach.

Thanks for reading.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads