Article View: adobe.scripting.indesign
Article #1491Setting Preferences Script (apple script) ID CS3
From: Rupert_phillips
Date: Wed, 11 Feb 2009 12:47
Date: Wed, 11 Feb 2009 12:47
53 lines
2525 bytes
2525 bytes
Power Pc G5 Mac Indesign 3 Hello Im trying to set the preferences in indesign to a common set with in the studio. After reading the help files I understoud I can't copy the preferences file to each computer and have to make a script. I downloaded a load of resources of the adobe web site. And found a script that sets rule units (see below). --ViewPreferences.applescript --An InDesign CS3 AppleScript -- --Sets the measurement units to points. --Assumes you have a document open. tell application "Adobe InDesign CS3" tell view preferences --Measurement unit choices are: --picas, points, inches, inches decimal, millimeters, centimeters, or ciceros --Set horizontal and vertical measurement units to points. set horizontal measurement units to points set vertical measurement units to points end tell end tell this worked well This looked like a good starting point, all I,ve got to do is set all the preferences. but I cant work out how you get the names eg 'horizontal measurement in view preferences' in indesign its units & increments; rule units: horizontal. For a start I tried to get it to change the origin so I edited the script (see below), I also tried to change keyboard Increments with no joy. Can anyone help? In the indesign help files they make it sound easy... (the old copying quark preferences file to each computer was). Regards Rupert --ViewPreferences.applescript --An InDesign CS3 AppleScript -- --Sets the measurement units to points. --Assumes you have a document open. tell application "Adobe InDesign CS3" tell view preferences --Measurement unit choices are: --picas, points, inches, inches decimal, millimeters, centimeters, or ciceros --Set horizontal and vertical measurement units to points. set origin to page set horizontal measurement units to points set vertical measurement units to points end tell end tell
Technical Details
Message-ID:
<59b7e19c.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,5e985da59c8a72cb,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Rupert_phillips@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Setting Preferences Script (apple script) ID CS3 Message-ID: <59b7e19c.-1@webcrossing.la2eafNXanI> Date: Wed, 11 Feb 2009 04:47:35 -0800 Lines: 62 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit