How to create and apply a condition to the selected text?
Hi all
I am new to Scripting InDesign. I use Flex 4.6, so I use ActionScript. I want to apply the conditional text in some text selected in my document. I understand the process manually. But I'm problem do it programmatically.
I see that there is a Condition class. I created an object of this class and tried to set some values.
var nameCondition = new Condition();
nameCondition.indicatorMethod = ConditionIndicatorMethod.USE_UNDERLINE;
nameCondition.label = "name"; Could not understand what label is synonymous with
nameCondition.name = "name";
nameCondition.visible = false;
Now, when I debug, I see that the values that I have assigned to the object nameCondition are never affected.
Also, I came across the appliedConditions method that is available in the app and doc. But I don't know how to use it.
Help, please.
Hi poortip87,
Find the code JS, his work below InDesign CS5.5 only.
var myDoc = app.activeDocument; try{ myDoc.conditions.add({name:"TEST", indicatorColor:UIColors.GOLD, indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, visible:false}) }catch(e){} app.selection[0].applyConditions(myDoc.conditions.itemByName("TEST"));
THX,
csm_phil
Tags: InDesign
Similar Questions
-
How to create and apply a vc in jdev 12.2.1?
Mr President
How to create and apply a vc in jdev 12.2.1?
I did like this, but do not know what my name of vc, it's VdetViewWhereCriteria.
My name of vc is
Concerning
In the AppModule, you must select the view criteria.
Open AppModule--> Data Model--> Select the VO (VdetView1)--> press the Edit button--> shuttle view criteria
as:
-
How to create and delete partitions automatically?
How to create and delete partitions automatically?
The environment is (10.2.0.3) 10g Oracle on the RHEL4.0 system.
I want to partition the table of MESSAGES by date (NUMTODSINTERVAL(1,'DAY')). One partition per day. Because the table is huge, only 2 partitions (as of yesterday and today) are required to be available online. All partitions as earlier than the day before will be saved, and then dropped. I want to do the partition to create and delete the work performed automatically. How to do?
Thank youjunez wrote:
Could do in detail?Here is an example of a procedure (part of a package) that adds/add a partition to an existing partitioned table schedule:
procedure AddHourlyPartition( tableName varchar2, hour date, partitionName IN OUT varchar2 ) is sqlCreate varchar2(4000); d date; begin partitionName := GetHourlyPartitionName( hourly ); -- name of partition to create if existsPartition( tableName, partitionName ) then -- nothing to do return; end if; d := TRUNC(hour,'hh') + (1/24); -- upper date limit of the partition sqlCreate := 'ALTER TABLE '||tableName||' ADD PARTITION '||partitionName||' values less than (TO_DATE('''|| TO_CHAR(d,'yyyy/mm/dd hh24:mi:ss') ||''',''yyyy/mm/dd hh24:mi:ss''))' ; ExecSQL( sqlCreate ); end;
The partition is safer to create partitions according to the experience?
It is always better to write good packages in PL/SQL. Packages can (and should) use the application programming interfaces (API). Because our partition custom package that allows the management of partition. Or a messageLog package that allows for logging of application messages, errors, and debugging messages. Or a Notification package that allows to be send by email or SMS notifications. Etc.
Design and software development, we should always approaches a "+ Lego mentality +"-which is to create building blocks ("+ Lego bricks +") which can be used and reused over and over again. Modularization is of crucial importance in software engineering as the result is not only of reusable code, but also the code that is easier to maintain, extend easier and easier to debug.
-
How to create and boot from a separate removable usb drive?
Do some testing software and wish not to overwrite my MBR disk (c :))
It's a matter of Google:
Help us with the problems here with the Vista operating system installed.
See you soon. Mick Murphy - Microsoft partner
-
Folder hierarchy: how to create and modify a folder hierarchy?
How to create and modify a folder hierarchy?
Here's how to change the default template for a folder:http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html. Default behavior is to select the model based on the first type of file placed in the folder (you must choose something). Vista sets thefolder type template according to what are the types of files in the window and the settings display window Explorer. This will show you how to resetthe Windows Explorer folder view settings, disable Automatic folder Type discovery and increase theview of the folder cache to have Vista don't forget display settings, model of file type, size, or position of a specific window for when it was still closed to the location of specific path.
It does not work with the Sub record under, Open with,open in a new tab (Internet Explorer), etc... dialog windows of type through the goodFile menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free programhttp://autosizer.en.softonic.com/to resize them.
Here is another article on how to modify the columns in Windows Explorer and sort in Vista:http://www.vistax64.com/tutorials/108665-column-customize.html. This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.
Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided:http://news.cnet.com/8301-13880_3-10019957-68.html.)
I hope this helps in your situation.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
How to create a file name variable with the County and the date?
Objective: Create a file name variable with the County and the date
Error: get a lot of error. Do you know how to change my code?
Question: how to create a file name variable with the County and the date?
Mini code:
std::string * rawfilepath;
std::string * rawfilename;rawfilepath = "./shared/documents/";
RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
QFile file (rawfilename);
If (file.exists ()) {}
rawfilenamecount ++;
RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
}Thank you for your attention,
Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.
Solution is below.
While (access (rawfilename, F_OK)! = - 1) {}
rawfilenamecount ++;
sprintf (format, RawFileName, rawfilenamecount);
fprintf (stderr, "file exists");
}Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
fprintf (rawlog, "System Time (ms)" ""); -
How to create and use Webservice using WSDL controls in weblogic portal10.3
I have WSDL, how to create webservice control using WSDL in portal weblogic 10.3 and use these controls to call the Web service methods?
Please give me the links of documents for this.
Thank you
Published by: user9041086 on August 12, 2010 09:26See the discussion below
How to create and use Webservice using WSDL controls in weblogic portal10.3
Thank you
Vincent Sarvabatla -
How to create a toolbar of shortcuts on the desktop
Hello...
How to create a toolbar of shortcuts on the desktop
Unfortunately, this feature is no longer available with Windows 7. I was surprised myself so since Vista was fine with it, but in Windows 7, we all need to just get used to using the feature of the taskbar QuickLaunch. You can pin any icon you want in the taskbar and use it to your quick launch of this program.
-
How to create a VPN file .pcf for the CISCO VPN CLIENT software profile
Dear all
How to create a VPN file .pcf for the CISCO VPN CLIENT software profile
Concerning
Hi Imran,
Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.
Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.
Once you create and save this profile. Your FCP file is stored.
Please assess whether the information provided is useful.
By
Knockaert
-
How to create a user local administrator with the user root on the CV
As says the tile, how to create a user local administrator with the user root on VCS-Express. I lost the password and cannot log in as an admin user, but I can't seem to log as long as user root.
Once connect you with the root account, type in "tsh", from there, you can create the accounts of local administrators with 'xCommand AdminAccountAdd. See the reference section of command of the VCS Administrator's Guide, starting on pg 517.
If your VCS is a virtual machine, you can change the password of admin with vSphere, or if it is a hardware appliance, you can use the serial port, see pg 312 of the Administrator's guide.
-
How to create a my Signature (signature with the tablet of manufacturing) Action?
How to create a my Signature (signature with the tablet of manufacturing) Action?
I use PSCS6?
I have no problem making an action of signature if I pick a font and then type in my name,
but to make a real action of my signature seems impossible.
Hello
There is a very cool technique to do by your signature in a Photoshop brush. Once this is a brush, you can change the size and place the signature everywhere where you want.
Google "Photoshop brush signature" or something similar and you will see a lot of tutorials. Try this one:
Photoshop reference guide | Creating a custom brush Signature | Peachpit
Basically, you sign your signature on a blank piece of paper, then you scan in a JPG or TIFF file, then you open that file in PS to create a brush.
I hope this helps.
John
-
CS6: create a simple extension: how to copy the selected text in the extension?
Hello
with this tutorial http://www.DWfaq.com/Tutorials/Extensions/simple_object.asp
I created a very simple extensions in Dreamweaver CS6.
But I can't find out how to get the code/selected text "in" this extension.
I want to reformat the selection with the javascript code for the extension and replace the selected text.
Thank you!
mtemp
Thank you very much for your answer!
I didn't know the difference between these two methods - my google search for 'extension' led me directly to the old tutorial mentioned...
And, Yes, I had to search long enough to find the 'object' extension on the fly on the menu...
Now, I adapted the code referred to in the dreamweaver_cs5_extending.pdf for the creation of such an extension of command - and, wow, it works... with 'copy' the text selected in the extension form.
So, thanks again! Now I'm on the right track
-
How do I know how is Administrator and where should I put the password to?
My computer keeps asking for a password
I have 3 standard users on my computer & no one is assigned to be administrator
Cannot install updates because do not know or do not have a password
How do I know how is Administrator and where should I put the password to?Hello
The manual installation of the operating system on the Microsoft Update Web site updates requires the Office of the operating system to run with administrative rights.
Please follow the steps mentioned below.
a. click the Start button.
(b) in the search box of start, type user accounts and click on user account.
c. click on Manage.
d. check which account is designated as administrator account.
Also check out the links below.
Why use a standard account instead of an administrator account?
What is an administrator account?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-an-administrator-account
Change the type of user account
http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type
Install Windows updates
http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates
Updates: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions
-
How to enable and disable, copy or rename the rules via the groovy script?
A client, we received this question:
How to enable and disable, copy or rename the rules via the groovy script?
Foglight 5.7.5
Hello
There is this example of support KB
support.Software.Dell.com/.../99059
and there is also documentation of Service layer of the administration on the RuleService console.
Best regards
Golan
-
Create and add a message in the log off screen on a Windows 7 PC
Original title: Log Off Message
Hi, I was wondering if it is possible to create and add a message in the newspaper off the screen of a Windows 7 PC
I searched and found only information on adding text in the log to the screen. This text will include the verbiage "Don't forget your USB."
You can use a script to logoff to do, which is a file that runs automatically when the computer disconnects. http://TechNet.Microsoft.com/en-us/library/cc753583.aspx
Maybe you are looking for
-
I'm going Fubar (wrong bar) to FUMafia (war game) when I do my pictures of people who parade disappear
-
DV7-4273us wireless and other software problems.
I did a clean install of Windows on a HP Dv7-4273US and he has a radio wireless broadcom in it, but according to the support of HP site for this model, there is no. Well, I found the driver for the broadcom wireless radio, but whenever I start the c
-
Why is-printing on my XP PC freezing
I have a strange problem with printing on my XP Pro PC over the last 2 weeks.First of all, some of the details. I can't dualboot XP Pro SP3 or Win7 Pro 64-bit.I have NO problem printing in Win7. It's a Dell all-in-one 948. Printing will start and the
-
Many Windows updates do not settle.
Original title: failure of the Installation of Windows Upgrades___ I just bought a new HP Windows 7 Home Premium PC p6520f just 5 days ago. However, when I try to install the Windows updates (several listed as Important, the bulk of any upgrade fail
-
When I close the lid on my laptop, random programs begin to run.
1. so here's the deal: I have laptop Dell XPS L502X in Win7 Pro; b. out of nowhere, and all of a sudden the next irritating problem started havoc. When I close the lid on my laptop at night, random programs begin to run. The desktop icons move into o