Script or function for flipped images
Hi
My team is an in-house creative team on a MAC environment. We do our own preflighting. From time to time vendors send us backward images. Some slip through the cracks before placing them in InDesign and we have to manually inspect each image before sending to a print vendor. Is there a script or an InDesign function that checks for this?
Thanks,
Johnny_Bigtime
This sets the flip of every link and its frame to none. Note that the flip is relative to the Transform Panel's Reference Point
tell application "Adobe InDesign CS5.5"
tell active document
set IDLinks to links
repeat with myCounter from 1 to count IDLinks
set absolute flip of parent of item myCounter of IDLinks to none
set absolute flip of parent of parent of item myCounter of IDLinks to none
end repeat
end tell
end tell
Similar Messages
-
Script photoshop | rename for color/image
Hello to all,
My English is terrible, but I hope you manage to understand.
I need a script to photoshop you can run at the end of an action, which indivudi the main color of an image, and based on what save the image with a specific name.
example:
Load a picture of a red pen (on white background), the script detects the color red as the primary and save the image: file name + "-red"
if the pen was green, would save with the: file name + "-green"
if the pen was dark green, with the would save: file name + "-dark_green"
most are color variants that can distinguer, the better.
please let help me.Maybe you should check out this thread:
http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=5095 -
Creating a script for inserting images
I am new to the scripting concept, so please forgive me when I use incorrect terminology.
I would like to create a script that will automatically place images in my InCopy document. Basically I want to type the names of image files in an InCopy document then run a script that will replace the name of the file with the actual image (either as an embedded image or as an image in a graphics frame, although the graphics frame might not work if the document isn't linked to an InDesign document.)
I'm assuming I'd have to identify the image name in some way (slashes or something before and after) and during the script I'd have to identify where to find the given images, such as which folder they are in.
Is this possible in InCopy?
Eventually, these InCopy documents will be used in InDesign. Would it be better/faster to use a script to import these images into InDesign instead of InCopy?
(In case the information is important, the images are all either .tif files or .eps files.)
Also, how do I find someone who can write this script for me? I'm assuming there are freelance programmer people out there... how do I find one?
Thanks for any advice/help you can give me!senza wrote:
this is ok, this i understand now. But where to tell which schema for which user?I don't understand this question. You create a synonym in your own schema for the object you want a synonym for...
so instead of referencing
select * from scott.empyou would create a synonym for scott.emp, so you can do
select * from emp -
Script for replacing Image from a frame into InDesign document file
Hi All,
I am having an indesign document (indd) file with images and texts. I am using InDesign Server CS4 to run the scripts via SOAP.
My requirement is to replace any of the images from the required frame/s of indesign document through scripting (I already have frame id of which image needs to be replaced). I have written written java-script file (as given below): but when I execute this java-script on InDesign Server via SOAP, I get follwoing error into InDesign Server:
10/03/09 15:15:54 INFO [javascript] Executing File: \\Server_IP_Address\JavaScript_File_Path\JavaScript_File.js
10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/help.gif
10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Water%20lilies.jpg
10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Winter.jpg
Following is the java-script that is being used for replacing image from indd's frame:
var myDocument = app.open(File('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd'));
var tmp_frmid="1339"; //frame id of which image needs to be replaced.
for (var i=0;i<myDocument.pages.length;i++)
var objPage=myDocument.pages.item(i);
var objPageitems = objPage.pageItems;
try
var obj = objPageitems.itemByID(tmp_frmid);
obj.images[0].remove;
obj.appliedObjectStyle = null;
var myImage=obj.place(File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg'));
var old_height = myImage.geometricBounds[2] - myImage.geometricBounds[0];
var new_height = obj.geometricBounds[2] - obj.geometricBounds[0];
var old_width = myImage.geometricBounds[3] - myImage.geometricBounds[1];
var new_width = obj.geometricBounds[1] + ((new_height / old_height) * old_width);
myImage.geometricBounds = [obj.geometricBounds[0] + "mm", obj.geometricBounds[1] + "mm", obj.geometricBounds[2] + "mm", new_width + "mm"];
var diff = obj.geometricBounds[1] - myImage.geometricBounds[1];
myImage.move( undefined, [diff,0] );
break;
catch(e)
myDocument.save('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd');
var previewFile = File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg');
app.jpegExportPreferences.jpegQuality["JPEGOptionsQuality.low"];
app.documents.item(0).exportFile(ExportFormat.jpg, previewFile);
myDocument.close();
I have very urgent requirement; if anyone have any idea; please suggest me. \
It would be highly appreciable.
Kind Regards,
Prashant.http://www.automatication.com/selection-to-pdf-script.html
Harbs
http://www.in-tools.com -
Smartview VBA function for launch calc-scripts as strings. like EsbCalc ???
We have used an Excel VBA which launch an calculation script from a STRING using the VBA Add-In function "EsbCalc".
We would like to migrate to Smartview VBA functions.....
The calc-script string has "parameters" which are modified at run-time...
I have found the function HypExecuteCalcScript - but seems that use as parameters ONLY the calc-script name...
Is it any VBA function in SmartView which launch a calc-script string (not a calc-script name) ?
We are using EPM 11.2
Thanks...A tip I just learned at Kaleidoscope 2010* is that one can create a calc script consisting entirely of a substitution variable. In other words, a calc script can look like this:
&Calc
Smart View VBA does have a function for changing or creating substitution variables (HypSetSubstitutionVariable). You could create a calc script and subvar in your database as above. Then, at run time, set that subvar to your calc string with HypSetSubstitutionVariable and execute the calc script with HypExecuteCalcScript.
Quick test (11.1.1.3) shows that this really works.
I can't remember privileges required to create or set subvars vs execute calc strings off the top of my head - might be an issue (I ran as an admin). Also this approach doesn't support concurrent users, unless they each have a calc script and subvar to themselves. Still, depending on your exact situation, this might be a feasible workaround.
*I won't credit the presenter solely because the tip came from a presentation which he specifically declined to make public domain. -
SAP SCRIPT function for converting to lowercase or uppercase
Hello,
Does anyone know an built-in function for printing fields in lower or uppercase with SAP SCRIPT
Regardshi,
Check this way..
DATA: DELIM(40) TYPE C VALUE ' '.
DATA: CON_ANREX LIKE Q0002-ANREX.
CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
EXPORTING
DELIMITER = DELIM
STRING1 = RECORD-ANREX
IMPORTING
STRING = CON_ANREX
EXCEPTIONS
NOT_VALID = 1
TOO_LONG = 2
TOO_SMALL = 3.
IF SY-SUBRC EQ 0.
RECORD-ANREX = CON_ANREX.
ENDIF.
Regards,
Santosh -
Flip Image - HTML code for InDesign
I am trying to create a flipping image in a digital edition and I found from the cookbook that there is an HTML code.
The problem is that when I am clicking on the attachment file "Flip_HTML.zip", appears a white page with a message FILE NOT FOUND.
Is there any other solution for that?
Thanks
GeorgiaThanks Liam. I am a newbie at all of this and decided to use the widget contact form in muse which has an image verification module but when I test it I get a message that it has to be supported business catalyst captcha module so thought there was a html code for it.
Thanks for coming back to me so quickly -
Illustrator script to create symbols from images in folder
Time to give back to the community...
Here is a script I recently devised to bulk create symbols from images in a folder. Tested with Illustrator CC 2014.
// Import Folder's Files as Symbols - Illustrator CC script
// Description: Creates symbols from images in the designated folder into current document
// Author : Oscar Rines (oscarrines (at) gmail.com)
// Version : 1.0.0 on 2014-09-21
// Reused code from "Import Folder's Files as Layers - Illustrator CS3 script"
// by Nathaniel V. KELSO ([email protected])
#target illustrator
function getFolder() {
return Folder.selectDialog('Please select the folder to be imported:', Folder('~'));
function symbolExists(seekInDoc, seekSymbol) {
for (var j=0; j < seekInDoc.symbols.length; j++) {
if (seekInDoc.symbols[j].name == seekSymbol) {
return true;
return false;
function importFolderContents(selectedFolder) {
var activeDoc = app.activeDocument; //Active object reference
// if a folder was selected continue with action, otherwise quit
if (selectedFolder) {
var newsymbol; //Symbol object reference
var placedart; //PlacedItem object reference
var fname; //File name
var sname; //Symbol name
var symbolcount = 0; //Number of symbols added
var templayer = activeDoc.layers.add(); //Create a new temporary layer
templayer.name = "Temporary layer"
var imageList = selectedFolder.getFiles(); //retrieve files in the folder
// Create a palette-type window (a modeless or floating dialog),
var win = new Window("palette", "SnpCreateProgressBar", {x:100, y:100, width:750, height:310});
win.pnl = win.add("panel", [10, 10, 740, 255], "Progress"); //add a panel to contain the components
win.pnl.currentTaskLabel = win.pnl.add("statictext", [10, 18, 620, 33], "Examining: -"); //label indicating current file being examined
win.pnl.progBarLabel = win.pnl.add("statictext", [620, 18, 720, 33], "0/0"); //progress bar label
win.pnl.progBarLabel.justify = 'right';
win.pnl.progBar = win.pnl.add("progressbar", [10, 35, 720, 60], 0, imageList.length-1); //progress bar
win.pnl.symbolCount = win.pnl.add("statictext", [10, 70, 710, 85], "Symbols added: 0"); //label indicating number of symbols created
win.pnl.symbolLabel = win.pnl.add("statictext", [10, 85, 710, 100], "Last added symbol: -"); //label indicating name of the symbol created
win.pnl.errorListLabel = win.pnl.add("statictext", [10, 110, 720, 125], "Error log:"); //progress bar label
win.pnl.errorList = win.pnl.add ("edittext", [10, 125, 720, 225], "", {multiline: true, scrolling: true}); //errorlist
//win.pnl.errorList.graphics.font = ScriptUI.newFont ("Arial", "REGULAR", 7);
//win.pnl.errorList.graphics.foregroundColor = win.pnl.errorList.graphics.newPen(ScriptUIGraphics.PenType.SOLID_COLOR, [1, 0, 0, 1], 1);
win.doneButton = win.add("button", [640, 265, 740, 295], "OK"); //button to dispose the panel
win.doneButton.onClick = function () //define behavior for the "Done" button
win.close();
win.center();
win.show();
//Iterate images
for (var i = 0; i < imageList.length; i++) {
win.pnl.currentTaskLabel.text = 'Examining: ' + imageList[i].name; //update current file indicator
win.pnl.progBarLabel.text = i+1 + '/' + imageList.length; //update file count
win.pnl.progBar.value = i+1; //update progress bar
if (imageList[i] instanceof File) {
fname = imageList[i].name.toLowerCase(); //convert file name to lowercase to check for supported formats
if( (fname.indexOf('.eps') == -1) &&
(fname.indexOf('.png') == -1)) {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a supported type.\r'; //log error
continue; // skip unsupported formats
else {
sname = imageList[i].name.substring(0, imageList[i].name.lastIndexOf(".") ); //discard file extension
// Check for duplicate symbol name;
if (symbolExists(activeDoc, sname)) {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Duplicate symbol for name: ' + sname + '\r'; //log error
else {
placedart = activeDoc.placedItems.add(); //get a reference to a new placedItem object
placedart.file = imageList[i]; //link the object to the image on disk
placedart.name = sname; //give the placed item a name
placedart.embed(); //make this a RasterItem
placedart = activeDoc.rasterItems.getByName(sname); //get a reference to the newly created raster item
newsymbol = activeDoc.symbols.add(placedart); //add the raster item to the symbols
newsymbol.name = sname; //name the symbol
symbolcount++; //update the count of symbols created
placedart.remove(); //remove the raster item from the canvas
win.pnl.symbolCount.text = 'Symbols added: ' + symbolcount; //update created number of symbols indicator
win.pnl.symbolLabel.text = 'Last added symbol: ' + sname; //update created symbol indicator
else {
win.pnl.errorList.text += 'Skipping ' + imageList[i].name + '. Not a regular file.\r'; //log error
win.update(); //required so pop-up window content updates are shown
win.pnl.currentTaskLabel.text = ''; //clear current file indicator
// Final verdict
if (symbolcount >0) {
win.pnl.symbolLabel.text = 'Symbol library changed. Do not forget to save your work';
else {
win.pnl.symbolLabel.text = 'No new symbols added to the library';
win.update(); //update window contents
templayer.remove(); //remove the temporary layer
else {
alert("Action cancelled by user");
if ( app.documents.length > 0 ) {
importFolderContents( getFolder() );
else{
Window.alert("You must open at least one document.");Thank you, nice job & I am looking forward to trying it out!
-
Here's the code:
<script type="text/javascript" charset="utf-8" src="http://animate.adobe.com/runtime/5.0.1/edge.5.0.1.min.js"></script>
<style>
.edgeLoad-EDGE-4084323 { visibility:hidden; }
</style
<script>
AdobeEdge.loadComposition('/media/products/edge_script/channels', 'EDGE-4084323', {
scaleToFit: "none",
centerStage: "none",
minW: "0",
maxW: "undefined",
width: "361px",
height: "268px"
}, {"dom":{}}, {"dom":{}});
</script>
<div align="center">
<div id="Stage" class="EDGE-4084323">
</div>
</div>
Thank you for your help.Ahhhhhh, ok. Figured this one out after digging more.
Here's the answer from another post. Hope it helps someone!
If you need to set an absolute folder url, or you are pulling the content from a server that does not host the content, you can manually update the <projectname>_edge.js file to specify the directory:
(function($, Edge, compId){
//images folder
var im='<SERVER/FOLDER>/images/';
Just beware that if you re-publish the files, you'll need to redo any custom modifications. I do this for off-server projects and it works very well so long as you make all the changes in each JS file where you need to specify the exact path. -
Disable link for a Image in Content editor web part
Hi
i want to disable hyperlink for a banner added using content editor web part. Instead of hiding using Target Audience, i want to disable the link.
Please help me how can i achieve this?
regards,
Vinay
Thanks and Regards, vinnuHi Vinay,
I recommend to disable the link for an image using Jquery in Content Editor web part.
First, you need to use F12 tool in Internet Explorer(IE) to get the html tag for the image, and you’d better find the class or id value for the tag of the image.
For example, if the class for the image is test, then the code should be:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$('.test').click(function(e) {
e.preventDefault();
</script>
You can also paste the code of the image here for further research.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
I have tried adjusting images in VC3 with Windows XP and have had no problem. However, after testing this unsuccessfully in WIndows 7 with two different brands of computers, I am almost positive this is a bug with the new operating system. Adjusting PNG images however works perfectly so the JPG file format seems to be the issue. Can anyone else that is using Windows 7 confirm whether adjusting JPG images (flipping, cropping, resizing, etc.) works for them in VC3? There is simply no response from my program when I attempted these functions. The image just stays in its default state.
Adobe tech support was absolutely no help on this when I contacted them (what a joke). I have been pulling my hair out over this issue for days now so I am desperate for an answer from anyone who uses this program with Windows 7. Thank you in advance.Thank you for your quick reply, I am not running any kind of backup software at all, when I-Tunes is running, I can access all folders on my hard drive including the I-Tunes folders, but if I-Tunes does not open via the I-Tunes icon, I will get the timer displayed for about 20-30 secs, then nothing, and if I try to access the I-Tunes folders it will crash the explorer, but if I try to access any other folder before I try to access the I-Tunes folders, they will open without any problems. It has got me totally puzzled and why should windows display a "remote............" error when just clicking on the computer option from the start menu, it is really all very strange!!
Jack -
Need help changing size and aspect ratio for 500+ images
Thank you for reading this! I have about 500 images of people in different poses. They're all extracted on a transparency as PNGs. They vary in aspect ratio, dimensions and position of the person within the frame - for some the feet are very close to the bottom of the frame and for some, they're higher up. I need to equalize all 3 of these qualities, so that if superimposed, they look like a video unfolding with the same zoom. My ideal size would be 800x800 at 300ppi.
Is there a way to batch even a part of the process and keep the png format? I had the images in PSD initially but they were too massive so creating catalogs with them was prohibitive.
If not possible to do a batch, what would be the best (easiest) and fastest way to do it? I'm thinking that maybe creating some template where an oval shape the size of the head can help create consistency of the size of the person and a line that helps set up the distance from the bottom?
I so appreciate any help you have to offer. Part of my problem is that I don't know what these processes are called so I don't even know what to search for. If you can even name the actions that I need, it would be of great help. I already paid a designer to do the extraction and they were supposed to do this formatting as well and they didn't so my budget is shot. I'm hoping that if I understand what the steps are, I can do them myself.
Thank you!If you download my crafting actions package you can record an action that uses one of my plug-in scripts to do that process. You could then batch that action and process your 500 png image files.
Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
Contains
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action
Sample Actions.txt Photoshop CraftedActions set saved as a text file.
More then a dozen Scripts for use in actions
Example
Download
Step 1 Select layers transparency
Step 2 Copy
Step 3 Paste
Step 4 Select all
Step 5 Align Layer s to selection vertical center
Step 6 Align Layer s to selection horizontal center
Step 7 Select bottom Layer
Step 8 delete current layer
Ste9 9 Fille>Automate>AspectRatopSelection... In the dialog set 1 1 ratio center rectangle replace selection feather 0
Step 10 Image Crop
Step 11 File Automate>Fit Image. In dialog enter width and height 800
Step 12 Image size in the dialog uncheck Resample and enter 300 in the resolution field.
I'm sure the should work you mane not need the copy paste and it depends on how Photoshop treats the PNG layer the canvas size or just the pixels.
This may also work
Step 1 Select all
Step 2 Align Layer s to selection vertical center
Step 3 Align Layer s to selection horizontal center
Ste9 4 Fille>Automate>AspectRatopSelection... In the dialog set 1 1 ratio center rectangle replace selection feather 0
Step 5 Image Crop
Step 6 File Automate>Fit Image. In dialog enter width and height 800
Step 7 Image size in the dialog uncheck Resample and enter 300 in the resolution field. -
Photoshop slice tool and Save for Web image quality. Will it affect prints?
I want to slice a large photo into multiple smaller (4x6) printable photos to arrange in a 12x12 inch scrapbook binder pocket (made of of 4x6 pockets). I need to order separate 4x6s online so tiling in the print options is not what I need.
The slow way I know to do this involves cropping and saving each section (maybe even recording this action to do batch processing). However, another way is to use the slice tool to quickly divide up the sections then "Save for Web...". I can adjust some parameters, but I'm afraid there are other automatic adjustments that I don't want. For example, all images are converted to 96 dpi instead of the original 300 dpi. The number of pixels remains the same so I don't think there will be problems printing the picture.
My question is: does the Save for Web function reduce image quality in any way when printing (it is obviously intended to be used to optimize images for websites)? Are there settings in "Save for Web" that would optimize for high quality prints? Is there a better way to tile an image?
I have not yet compared any prints.
W7
CS6If you understand that something will do something you do not want like convert to 96 DPI as long as it does not resample you can always convert back to 300 DPI. If you want 6 4x6 to form a 12x12 you must start with an square 1:1 aspect ratio image. That you resample to 12"x 12" at 300 dpi if you want 6 4x6 300 dpi images.
If the original images vary in size and aspect ratio you need to crop them square or add two borders to make them square. The rest is easy to do with an action.
The square crop or border can be automated with a little scripting. If crop a center crop would be the route to go. My crafting actions package contains more the a dozen scripts to be used within action. One is a plug-in script that would make center cropping a snap two steps menu File>Automat>AspectsRatioSelection followed menu Image>Crop. Add a menu Image>Size set side to 12" and resolution 300 DPI and you have your starting 12"x12" 300 dpi image.
Flatten the image make your first 4"x6" selection copy past to add it as a layer. Select the background select the next 4x6 area copy and paste repeat that process till you have added the 6 4"X6" layers. Then delete the background, Select all, target all layers and use layer>Align layers to selection>Top edge then repeat align to left edge. the Image>Trim you have your 6 4x6 in a stack. You can the use Adobe Photoshop Script Export Layer to file. All automated in an action however the last step Export layers to files is interactive for its not a plug-in script. So if you batch it you keen to hang around to interact with the last step for each image.
You could also write you own export script that would not need human intervention to use instead of Adobe interactive script.
Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
Contains
Action Actions Palette Tips.txt
Action Creation Guidelines.txt
Action Dealing with Image Size.txt
Action Enhanced via Scripted Photoshop Functions.txt
CraftedActions.atn Sample Action set includes an example Watermarking action
Sample Actions.txt Photoshop CraftedActions set saved as a text file.
More then a dozen Scripts for use in actions
Example
Download -
Scripting Gallery - Script hopefully useful for beginners
Don't know whether I am allowed to put this info here, if I'm not - sorry in advance.
Just want to share some script code I was writing for myself to help manage tedious work of preparing images for publication them in (web-)gallery.
I believe it can be useful not only because of its direct functionality but also as a base one could use as a starting point for developing his own scripts. There are some hints on modification the script and workflow description, that can help you modify and further customize the script. So, I hope some beginners may find it useful.
What it does?
The script (called Scripting Gallery) creates resized copies of images in specified directory and, optionally, the set of thumbnails, all according to specified parameters including size, nudge offset, logo (for "big" images) and frames (for thumbnails), preferred resampling method, export quality, Unsharp Mask filter settings, renaming options, etc. Detailed description, specification and hints on using the script can be found on Scripting Gallery site.
The script is written in VBScript (so it works only on Windows systems) and comes in two language versions (English and Russian) and can be downloaded from its SourceForge page.
Just give it a try and let me know whether it worked for you.
Thank you.dear chiranjp,
Thanq so much for providing ur code. It helped me to complete my app in time
Thanq once again
venu -
Adobe Bridge (CS6) - bulk action - JPEG Options must be OKed for every image
Hi all-
I created an action script for a watermark in Photoshop CS6. Then, I ran my script as a bulk action in Adobe Bridge (CS6) against my JPEGs. However, the JPEG Options dialog/window appears for every image in PS. Is there a way to have this automatically OK (and at the highest quality) so that I don't have to sit and click OK over and over?
I am on a Mac btw.
Thanks!Please help
Maybe you are looking for
-
Dear Experts, I am SAP FIico consultant but i have a query in MM module. Client need a report of purchase order with the user name , who create the po. Thanx in advance Regards Aditya
-
Error while configure new plant
Dear Friends, I have configured new plant - 8888 in company - 1000, and while creating a sale order for that plant, i am getting the below mentioned error msg, guide me to solve this.... " No add. company data maint. for 1000 8888 - please
-
Using iSight to stop display sleep
Hi I want to use an old 20" iMac as a simple billboard behind a window, showing an iPhoto slideshow, without any user interactivity. That's the easy part. However, since there won't people to look at the screen all the time, and there may in fact be
-
Hi gang, Another question, if you don't mind. I mainly work on 3D Architectural presentations. The clients are handed a digital files and I never deal with the printing of the images. Some go onto large billboards, some even get framed . In most of t
-
What is the best way to find out when was a particular ODS last used to update a data target