Possible to change active print preset across documents via scripting?
Hi everybody. I have a ton of documents that were created previously, and the default/custom print preset is selected any time I go to print them. I'm going to be printing them using a script, but I would like to change the active preset in each document to a new preset I have created for this job. Basically, I just need a script which I can apply at the folder level which will change the active print preset for the documents and save them. Thanks in advance for the help!
You should be able to open each document, and then set app.document[i].printPreferences.activePrinterPreset.
Similar Messages
-
Enforce Default Printer Presets Across Multiple Users
Hi
Please could anyone tell me if there is a way to enforce the default printer preset across multiple users on the same computer for a network attached printer?
I want to make sure that all of my family who each have separate accounts all print using greyscale by default.
I would like to do this without copying plists about. I was hoping that there is some global way to do it as an administrator.
TIAHello Ian,
I did a couple of simple tests on this topic and from what I can see there is no easy way for this to be done. The preferences (plists) are being saved in each users preference, and depending on which printer you are using the located and format for this preference is not easily copied.
Unless there is a third party app (or something I missed) then I don't see a simple solution to this.
Regards,
Paul -
How to find a text in the Frame maker document via script?
How to find a particular text in the Frame maker document via script?
johnsyns wrote:
Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
SQL> select *
2 from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
3 FROM DUAL CONNECT BY ROWNUM <= 27)
4 WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
5 /
no rows selected
SQL> select *
2 from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
3 FROM DUAL CONNECT BY ROWNUM <= 27)
4 WHERE TO_CHAR(dt,'DAY') = 'TUESDAY '
5 /
DT
07-APR-09
14-APR-09
21-APR-09
28-APR-09
SQL> select *
2 from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
3 FROM DUAL CONNECT BY ROWNUM <= 27)
4 WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
5 /
DT
07-APR-09
14-APR-09
21-APR-09
28-APR-09
SQL> SY. -
How do I change my printer preset on my iMac?
I have a Canon Pro9000 MarkII and it gives me an error "Support Code : 88 The media type and paper size are not set correctly. Stop printing, change the settings, and print again. If you selected Board Paper as the media type, you need to set the paper size to an art paper size (Margin 35)" Where do I go to change that? I can't do it from the PRINT setting. I have been to a 127.0.0.1:631 to change that, but now I cant access that anymore. I can't print out of my cannon and it is driving me crazy!
The first thing to do is to unadd then readd the printer, depending on the OS Black Apple, Settings> Print&fax>unlock the settings via the gold lock in the bottom left>click the printer>then the minus button in the lower left above the afore mentioned lock>then readd the printer using the plus symbol, if the issue persists redownload the support software for the printer and try again, if issue persists call Canon.
-
Is it possible to change filter cutoff frequency/Channel eq via modulator
I want to change the filter cutoff in the channel eq (high pass) via modulater?
thank you,
best regardsIf you mean the Modulation Wheel, then the answer is yes.
Use the "Automation Quick Access" feature. This lets you assign a single MIDI controller (i.e Mod Wheel) to control (and record) whatever the currently selected Automation Parameter is (i.e. FIiter CutOff, EQ, etc)
I explain the details how to set it up in the Automation chapter of my manual "Logic Pro X - The Details"
Hope that helps
Edgar Rothermich
http://DingDingMusic.com/Manuals/
'I may receive some form of compensation, financial or otherwise, from my recommendation or link.' -
Saving documents via Scripts: Get current file name and set save path/file type
I am writing a script that will:
-Make all layers invisible
-Make a layer named "background" visible
-Delete all the invisible layers
-Save the docment as an EPS file (leaving the original document untouched)
I am new to scripts and so have based my script by copying code from other scripts.
Here is my code:
var doc = app.activeDocument;
var name = doc.name;
var hide = function (){ // hide all layers (based on http://forums.adobe.com/thread/644267)
var L=doc.layers.length;
for (j=0;j<L;j++){ doc.layers[j].visible=false; }
hide();
// loop through all layers
for (var i = 0; i < doc.layers.length; i++) {
// Create the illusrtratorSaveOptions object to set the AI options
var saveOpts = new IllustratorSaveOptions();
// Setting IllustratorSaveOptions properties.
saveOpts.embedLinkedFiles = true;
saveOpts.fontSubsetThreshold = 0.0
saveOpts.pdfCompatible = true
//Set up Variable to access layer name
var currentLayer = app.activeDocument.layers[i];
// Loop through the layers and make the back ground layer visible
if (currentLayer.name == "Background") {
docName = name + currentLayer.name+".eps";
currentLayer.visible = true;
// Delete Invisible Layers (based on http://www.cartotalk.com/index.php?showtopic=7491)
var myDoc=app.activeDocument;
var layerCount=myDoc.layers.length;
for (var ii = layerCount - 1; ii >= 0; ii--) {
var currentLayer = myDoc.layers[ii];
currentLayer.locked = false;
var subCount = currentLayer.layers.length;
for (var ss =subCount -1; ss >= 0; ss--){
var subLayer = currentLayer.layers[ss];
subLayer.locked = false;
if (subLayer.visible == false){
subLayer.visible = true;
subLayer.remove();
if (currentLayer.visible == false){
currentLayer.visible = true;
currentLayer.remove();
// Save Out Document with New Name
var saveName = new File ( doc.path + "/" + docName );
doc.saveAs( saveName, saveOpts );
Everything works fine except:
1) It saves the document with the name AdobeIllustratorBackground as opposed to the name of the document
Also, I am not sure how to tell the script to save as EPS and to specify the save location.
Could some one give me some pointers? Thanks!Thanks! I changed my code to this:
var title = doc.name;
var title = title.substring(0, title.length - 3);
And it now works! (The substring thing removes the .ai extenion).
However, how do I get it to save it as an EPS? (I found this script that saves as PNG, but I am not sure how to adapt it to EPS).
Also, how do I set the file output path?
Thanks for any help that can be offered. -
Changing the Task Sequence Deployment Options via script
Hi all,
I am fairly new to SCCM 2012 scripting/SDK and couldn't find any helpful examples how to change the deployment options of task sequences by using a script.
The problem is: we have got a significant number of TS that have the deployments set to "Download content locally when needed by running task sequence".
I have to change this setting to "Download all content locally before starting task sequence".
Afterwards I need to create a list of all changed TS Deployment options and also a list of current settings of all TS Deployment options.
Therefore I would need a script that can read and set this particular option of the TS.
Does anybody have a script that can do such tasks? Any help is highly appreciated.
Btw, I am not picky, I can handle WMI, SQL, VBS, PowerShell, .Net Code (vb.net or c#). Whatever you have handy would be quite helpful.
Many thanks
AmirHi,
The Set-CMTaskSequence -DeploymentOption could help you change this setting.
Set-CMTaskSequence
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Print preset defaults to (custom) after change in qty
Sorry. It's complicate to describe in one line (and even harder to search for an answer).
I'm using CS4 on a desktop PC.
When I change to my special printer presets, the quantity to print default is 1. Of course.
When I change the quantity to a number other than one... the print preset returns to (custom), which is the default.
and alternately
If I start by changing the print quantity, followed by changing the print preset, the quantity defaults back to 1.
I need to print the same document multiple times, and it's rather frustrating...
help?The presets are extremely customized. It took me an hour to set each one up. (there are three presets that I use on a regular basis). Yes, all the settings go back to the default and thus is not functional for my purposes.
File > Print Presets > <your preset> leads me to the exact same problem. When I change the quantity it returns to (custom)
Is there somewhere else I can look for troubleshooting information? I was at a complete loss for how to search for my strange problem... -
tell application "Finder"
activate
set thefolder to choose folder with prompt "Select a Folder with InDesign Files to be Printed" as text
set thePath to thefolder as text
set the selected_items to every item of folder thefolder
if the selected_items is {} then
beep
display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1
end if
repeat with aFile in selected_items
tell application "Adobe InDesign CS6"
activate
with timeout of 600 seconds
set user interaction level of script preferences to never interact
open aFile
tell document 1
tell print preferences
set active printer preset to "Catalog Pages"
set page range to all pages
end tell
print without print dialog
close saving no
end tell
end timeout
--might need this delay
--delay 10
set user interaction level of script preferences to interact with all
end tell
end repeat
tell application "Finder"
activate
display dialog "Batch Printing is complete!" giving up after 5
end tell
end tellHi
After I put a small delay in as shown, your code ran fine, tested on about twenty ID files, using ID CC 2014, OSX 10.10.2
tell document 1
delay 0.5 -- delay added
tell print preferences
set active printer preset to "Catalog Pages" -
Printing presets!!!
I am running OS X Mountain Lion on a new macbook pro retina display. i am pretty happy with it, but some things are just driving me insane. If you can help to solve some of those, then you could look at some of my other posts, but....i digress. Anyways, i have the microsoft word, excel and powerpoint 2011 for mac installed, but what is really annoying is that i simply cannot change the dang printer presets!!!
I've tried looking on the internet for over 2hrs and got things like "open your print preferences" (didnt work as i dont have printer preferences) or "most of the details are hidden under another tab" (the tab/button does not exist) all of which just made me get more and more confused. I really want to be able to change the printer presets like the color/grayscale option, page type, quality and other things like that. I am kinda new to macs and all, but the windows interface for printing on my old HP pavilion g6 is generally the same...
Please help.
thanks
RohanThis is a known problem with the presets: the page format information is not stored, and this needs to be fixed by Apple.
Hope this helps. -
How to change the price list in document?
Dear All,
Is it possible to change the price list in document (e.g. Sales Order) by program (UI)?
If no, any other way to do so? Thanks!
Regards,
OnDear Gordon,
It may be Purchase Order or Sales Order. But different target will have different solution?
Regards,
On -
How to change the print queue name with Lexmark printer?
Is it at all possible to change the print queue name from Lexmark_3500_4500_Series, to something shorter? I try to link printouts from an old Sun Unix system, thru my iMac to the Lexmark X4580 multifunction printer. However, the Sun/Unix will not accept this long print queue name...
Apologies, I misread. The only way I know of changing the Print Queue Name is by readding the printer.
> System Preferences > Print & Scan > Add
Choose your printer, make sure you change the print queue name to something different (equates to the Printer Name).
When you need to print, simply select the printer you just added.
Once your happy it works, delete the old printer from the list in Print & Scan.
Morgan -
Solved Copying Printer presets to other users
I want to copy printer presets across to all users.
I tried the suggestion as per this thread
Copying printer presets
But in Mavericks it does not work. I have tried multiple times..deleting old plists, log gin out and back in again ..checking and comparing permissions etc..no joy
The prefs files are there, but deleting the old, and copying the plist to other users then doing a print, the Presets do not appear, even when the "Show Presets' button is clicked.
Wonder if any one has managed this yet with mavericks
Thanks
Edit:
A log out is not enough ...needs a full shutdown and re boot
Message was edited by: Neil PaisnelLook for the com.apple.print.custompresets.plist file in /<home>/Library/Preferences/
Hope this helps. -
Printing multiple retrieved documents
Is is possible to configure IFS to retrieve multiple documents via a search, and then print all documents at once?
Have a look into financial reporting batch bursting :- http://download.oracle.com/docs/cd/E12825_01/epm.111/bpmui_user/scheduler_wizard_fr.html
Cheers
John
http://john-goodwin.blogspot.com/ -
Changing Activated Article Hierarchy Structure
Hi Experts,
Is it possible to change Activated Article Hierarchy in IS Retail ECC 6.0.
When i try to do in Tcode: WMATGRP02, system is throwing following Error Message.
"" Only limited changes are possible to active article hierarchies Message no. RTCMMD058
Diagnosis
Every change to an active material hierarchy has a direct impact on the
applications that use the data of an active hierarchy (for example,
merchandise planning, assortment planning, reporting, etc.)
Only limited changes to active material hierarchies are possible.
Changes are only allowed to the material assignment.
Node assignments can be displayed. ""
Any Input is highly appreciated.
Thanks and Regards,
Selvakumar. Mhi Selva, I'm curious on how the above has been resolved. I'm new to Retail and would like to get your inputs on whether an active hierarchy can still be changed and if so, what are the steps (trying to add another level to an existing node, e.g. new sub-department under an existing department). Appreciate your inputs. Thanks!
Maybe you are looking for
-
when i want to sign in apple id in icloud from setting , appear a black page and loading .... help me ...
-
How to create an XML Port in we21
Hi friends, Please help me in creating the XML Port in we21. what are the inputs I need to pass to create the XML File Port. Kindly suggest me Thanks in Advance, Ganesh
-
Auto archive log deletion from single location out of multiple locations.
Hi, I am running database on 11r1 version. I have set two archive log locations. now i want archive logs to be deleted through RMAN from only one location the other location shouldn't be affected. what are the specific parameters to be set. Is there
-
Magic Mouse won't work in Windows 7 anymore
Hey there, I've got an iMac running OS X 10.6.8 and Windows 7 via Boot Camp. I just updated a bunch of the Apple stuff on Windows -- iTunes, Quicktime, "boot camp" (I assume that meant drivers and such), and whatnot. Now my Magic Mouse won't work in
-
We have a mac lab at work with about 20 macs. We have one mac mini server runnings things nicely for now. We recently got a couple of the new IMacs and were assigning one for testing. So I though it would be a good way for me to learn more about t