Find the element of object styles, and then copy it
Hello, I would like to create a script.
Find elements of object styles:
Outside of the document, I create on block with the style of the object "reference". It will be unique.
Once selected, I want to put it on the Clipboard or simply make a copy.
If selected by object styles is not possible, how can I do an id on my element?
Can you help me?
Thancks a lot!
YES!
I solved the problem like this:
var obj1 = app.selection [1];
var obj2 = app.selection [0];
Alert (obj1 and obj2);
obj1. Select();
App.Copy ();
app.loadFindChangeQuery ("PuceSimple_enPuceCouleur_Courant", SearchModes.grepSearch);
obj2.changeGrep ();
But I have a question.
How the script knows which is the number 0 and the number 1?
This is the order of selection? in position on the page?
Could be done as follows:
var obj1 is app. Docuement.Item ("reference");
var obj2 = app.selection [0];
Tags: InDesign
Similar Questions
-
When I try to "save under" I get a message "Initalising the root folders to display" and then the screen freezes. Sometimes when I click several times on the target folder it opens other times it does not. Any thoughts?
Hello
You try to save files using Microsoft office?
If so, this article should help you
The program stops responding when you try to open or to save a file in an Office 2002 program, in an Office 2003 program, in a 2007 Office program or in a program Office 2010
http://support.Microsoft.com/kb/313937
If its with a different program and then check if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.
Step a. refer to the article below for the procedure safe mode in Windows XP
A description of the options to start in Windows XP Mode
http://support.Microsoft.com/kb/315222
Step b. You need to perform a clean boot to find the program that is causing and then disable or remove.
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353/en-us
Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Find an object with an object style and increase its height! …
Hi all
I found each (anchored to the current text) 'invisible' block with a specific 'AA' object style and change its height SO its offset is > 180 (depending on the origin 0,0 page by default).
This seems to be simple but, still, who doesn't!
Thanks in advance!
(^/)
app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "xxx"); function main() { app.findObjectPreferences = null; app.findObjectPreferences.appliedObjectStyles = "AA"; myFound = app.activeDocument.findObject(); for (i = 0; i < myFound.length; i++) { var myGB = myFound.geometricBounds; var myYOffset = myGB[2]; var myHeight = myGB[2] - myGB[0]; if (myYOffset[i] > 180) myHeight[i] += 90; } }
Replace this:
myFound.geometricBounds
with this:
.geometricBounds myFound [i]
You must then change the geometricBounds and apply it to the object:
myGB =...
myFound [i] .geometricBounds = myGB
Something in this direction.
Peter
-
I need help to write a script that detects the first instance of a paragraph style and then change
I need help to write a script that detects the first instance of a paragraph style and then he goes to a different paragraph style. I don't necessarily need someone to write all this, by the biggest problem is to find how to find just the first instance of the paragraph style. Any help would be greatly appreciated, thank you!
Hello
then try this with your active doc:
....................
myDoc var = app.activeDocument;
mStyle var = myDoc.paragraphStyles.item ("PS_NameToFind"); change the name to paraStyle
var mStyle_1 = myDoc.paragraphStyles.item ("PS_NameToChange"); change the name to paraStyle
var mFrames = myDoc.pages.everyItem ().textFrames.everyItem () .getElements ();
app.findTextPreferences = null;
app.findTextPreferences.appliedParagraphStyle = mStyle;
for (var k = 0; k)< mframes.length;="">
{
currFound = mFrames [k] .findText ();
If (currFound.length > 0)
currFound [0] .paragraphs [0] .appliedParagraphStyle = mStyle_1;
}
app.findTextPreferences = null;
................
Rgds
-
Search the text of paragraph style and place them in the new text block with width 50mm
Hello
I'm looking for voor a paragraph to find script dat styles and place them in a new text block with width 50 mm.
Is there a solution?
Kind regards
Patrick
Width: options General of the frame of the text, GBA: fixed width, then 50mm width
Height: automatic block text size options
(These two in the dialog box object styles)
-
best judgment for paragraph styles, object styles and character styles
I want to learn the criteria difference and use of paragraph styles, object styles and character styles. I know how to use them, but know about the best judgment and context, when you use would be better. Can anyone recommend links? I've been using adobe. Please don't suggest books.
Paragraph styles are whole paragraphs.
Character styles are letters or isolated words. Do not use the long of an entire paragraph. Do not set all the attributes, only those who are different for the properties of the paragraph Style. Unlike Quark Xpress, in InDesign are character Styles used only for the difference of isolated words.
Paragraph styles can include the character automatically Style: Styles, GREP, nested Styles, initial letters, chips automatic & numbers and line styles.
Object styles , set the frame of the object. They include separate definitions of all of the object, the stroke and fill.
Object styles can also be applied to images in a frame and groups.
Object styles may also include in the following paragraph Style and a style of paragraphs in automatic way.
Object styles have several categories, you can choose which category is relevant to apply. For example, it is possible to apply the first style object to give the stroke and fill and apply a different object style to format the corners only and then apply the next. (With this method last only the applied object Style is linked).
Styles of the opportunity to make global changes in a document. If you build in a smart way, they are a huge time saver. They can be stored in the CC libraries or libraries with objects that are applied to them. If you have created once these styles, you can use them again, and with one or two clicks, you can make their own to new document.
My recommendation: the habit of Styles, name them always with the same names that it helps you to be accustomed to them and to work faster, much faster.
There are more models: Table Styles, Styles of cell, the Master Pages and color chart.
-
Thunderbird: In write mode can not find the tool bar (or menu bar), then how should I send my email?
Well you can press Ctrl + Enter or you could re - turn on the menu and the toolbar https://support.mozilla.org/en-US/kb/display-thunderbird-menus-and-toolbar .
-
Have not analyzed the photos for a long time. When I did it before, I clicked on the icon for HP Deskjet and then was able to choose "Scan Doc or Photo". This option is no longer. Need help.
If you use windows 7, start menu open then choose "all programs" and find "windows fax and scan" and open > then go to the lower left choose scan and then in the main menu, choose "new scan".
or you can watch this videoscan a document or photo with windows fax and scan
"If your scanner is not connected or you have a problem with the driver is the message"
No scanners were detected. If a scanner is installed, make sure that it is turned on and connected to the computer, and then try again.
For more information about adding or troubleshooting scanners, see Help and Support
" -
Original title: blocking or scrolling
Generally when I go in windows or by mail, the computer will pick up, and then when it opens, I can't keep the page at a particular place. It scrolls upwards or downwards, when I try to open a place to file an open letter from mail, or trying to do some work. Please notify.
Hello
1 how long have you been faced with this problem?
2 don't you make changes on the computer before this problem?
3 what e-mail client or browser you use?Step 1: Check if the problem persists in the clean boot state.
From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".
Reference:
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
1. click on start and then click Run.
2. type msconfig and click OK.The System Configuration Utility dialog box appears.
3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
4. When prompted, click on restart to restart the computer.Step 2: Also, viruses or malware scan and check.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
http://www.Microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ad724ae0-e72d-4f54-9ab3-75b8eb148356Step 3: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.
Reference:
Using the event viewer
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true
Understanding of event viewer
http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true
Procedure to view and manage event logs in Event Viewer in Windows XP
http://support.Microsoft.com/kb/308427 -
Original title: Lexmark printer
Hello
Thank you for helping me to get my laptop working again - after contacting the Microsoft Community, Microsoft and my ISP, my email seems to work so I can get all my incoming messages.
But I'm still having a problem printing. I tried to uninstall the Lexmark S605 and I get the message error "series Lexmark S600 is currently in use. Wait until the printer has finished printing and then uninstall. "I get this message even if the printer is turned off and unplugged.
Before I tried to uninstall, I tried to update the drivers from the Lexmark site and it says the update was successful, but nothing prints. Printer is no longer supported by Lexmark. Wireless connects, but I have also tried to make it work using the USB connection.
Printer print wireless from office, but not my laptop.
Does anyone have an idea on how to uninstall the Lexmark program?
Thank you
Agnes
Restart your computer and check the queue to printer in the Notification area, as suggested.
Click on the printer
Cancel all Documents
For more information, visit the below mentioned link:
http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter
Printer problems: http://blogs.technet.com/b/markrussinovich/archive/2010/04/12/3324570.aspx
Run the printer problems to: http://support.microsoft.com/gp/printing_problems?entrypoint=WHHT
You can see the below mentioned links.
http://Windows.Microsoft.com/en-us/Windows7/install-a-printer
http://Windows.Microsoft.com/en-us/Windows7/find-and-install-printer-drivers
http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer
http://Windows.Microsoft.com/en-us/Windows7/printing-to-the-correct-printer
-
I just clicked on the shortcut to undo key and then all photos are missing after I get my CF card
How to get my photo because I just clicked on the shortcut to undo key and then all photos are missing after I get out my card CF.
I formatted my CF card already.< re-titled by host >
If you clicked the Cancel button right after the import, then you u did import. If the REFO option is available, click on it.
In otherwise, re - import photos from the card again and do not click Cancel. If the card has been erased, see if you can use the Time Machine backup to restore.
-
I get all my calls on my iphone 5. It sounds at the end of the appellant, but it does not sound on my end and I do not get a past the call. If the caller leaves a message, and then I get a voice message notification.
BabsMKE wrote:
I get all my calls on my iphone 5. It sounds at the end of the appellant, but it does not sound on my end and I do not get a past the call. If the caller leaves a message, and then I get a voice message notification.
settings - do not disturb - off
-
The mouse abandons its connection and then connects again a few seconds later.
The mouse abandons its connection and then connects again a few seconds later.
-
Find the base of Object.vi doesn't work is not in the picture 3D Solidworks Import control
Hello
I try to import the Solidworks model, I get the whole Assembly in 3D image image but when I try to find the particular help object to find object.vi It gives me
Error 1 ganglion invoke in NI_3D photo Control.lvlib:Find Object.vi-> VRMLviewer.vi
Possible reasons:
LabVIEW: An input parameter is not valid. For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @.
=========================
NOR-488: Command requires GPIB controller charge controller.Is there a specific way to be part of Solidworks or wjat could be the possible reason.
Thanks in advance.
Although you probably have names on your model, your VRML (.wrl) file does not work. If you try to open the file with a text editor, you can fix this by adding the following statement before processing:
Basis of DEF transform {}
This will allow you to access the location of the VI to find. The error is because LabVIEW has not found the
name in your VRML. -
Unable to save changes to the sounds. When registered and then double checked, change moved not. This applies specifically to sound for the navigation to start windows Explorer. I'm putting it to zero.
Unable to save changes to the sounds. When registered and then double checked, change moved not. This applies specifically to sound for the navigation to start windows Explorer. I'm putting it to zero.
====================================
After making your change did you left click... Apply / OK?
John Inzer - MS - MVP - digital media experience
Maybe you are looking for
-
How to restore tabs after 3 crashes on Firefox 38.0.5
Firefox crashed three times while I was clear cache and cookies. All my tabs have been restored after the first two accidents, but not after the third. I tried everything with no luck. I have read many files of technical support about this problem. S
-
With the help of T-bird on the desktop with Windows 7. Every other time I download email error message popped up. The recommended fix (remove inbox.msf) only works for downloads then send one or two.
-
Trigger line asked could not be booked because it is already in use.
Hi, I am trying to export the markers PFI0 and PXI_Trig0 on NI5450 (in script view) by using the following code There are no errors when I set up by using the following code. commWrapper.ExportSignal (PXICommonGenWrapper.niFgenConstants.MarkerEvent,
-
I just do a fresh install of WIndows 7 on my Probook 4535 s USB (without the facilities of HP/aid), and things looked fine, except no internet access. Just after installing WIndows, I tried to plug in a cable internet, but no connections have been ma
-
messages lost in Outlook Express in the month of September 2011.
messages lost in outlook express in the month of September 2011 and they reappeared last week, then again disappeared. How to restore the mEssages'.