how to set Indesign's application frame or bar choices

Hi all

In Indesign CC you can goto menu item “Window” choose between “Application Frame” (which makes a solid background) or “Application Bar” (which allows for a transparent background), Is there a way to set either one to true or false using
AppleScript?, I can’t find anything on the web, and i’m not a fan of UI scripting.

Hi Budgie,

It’s a bit late, been having trouble logging on.

Try these settings:


tell application "Adobe InDesign CC 2015"
	
	set genPrefs to general preferences
	
	set appFrame to use application frame of genPrefs
	set use application frame of genPrefs to true
	
	set appBarPrefs to application bar shown of genPrefs
	set (application bar shown of genPrefs) to false
	
end tell

You’ll have to do some testing as it looks like an error can occur depending on which way round you set them.

HTH

Hey TecNik

excellent work, where did you find the info for that?

tell application "Adobe InDesign CC 2017"
	set genPrefs to general preferences
	if application bar shown of genPrefs is true then
		set use application frame of genPrefs to false
		set application bar shown of genPrefs to false
	else if use application frame of genPrefs is true then
		set use application frame of genPrefs to false
	end if
end tell

Hi Budgie,

Glad you’ve managed to sort it. Nice way to implement handling the prefs.

I use Script Debugger, I think it’s great if you haven’t already got it.
I opened the dictionary, for InDesign, and did a search for ‘Application’. Both of the required prefs appeared in the search results. With both of the menu items starting with ‘Application’, I thought I’d give that a try first.

The two properties can be found pretty much in the same way using Applescript Editor.
Simply open the dictionary and do the search.

Thank’s for the info, have a great day