Forum Replies Created
-
AuthorPosts
-
Masood Ahmad
ParticipantNeither this worked, sorry!
Masood Ahmad
ParticipantHi Loic,
There is an error in the script, can you please check and fix the error. I’m trying this on InDesign CS5
<pre class="brush: javascript">
var main = function() {
var doc = app.properties.activeDocument, root, xes, n;
if ( !doc ) return;
root = doc.xmlElements[0];
xes = root.evaluateXPathExpression ( ".//SalaryDescription" );
n = xes.length;
while ( n– ) xes[n].remove();
}var u;
app.doScript ( "main()",u,u,UndoModes.ENTIRE_SCRIPT, "The Script" );
Masood Ahmad
ParticipantAmit, just checking, how are the things going.
Masood Ahmad
ParticipantWell that depends how you take it. For me I will go for GREP styles. At least you don’t have to verify whether the style has been applied or not.
Masood Ahmad
ParticipantKelli, you don’t need a script for this simple task. Try GREP styles…
Sorry Kai :)
Masood Ahmad
ParticipantWhat I can figure out is that you have installed English version instead of updating InDesign ME.
I don’t think Adobe will swipe away the ME features in its latest update. Try installing it again…
Masood Ahmad
ParticipantI like the long answer :), interesting and knowledgeable.
Masood Ahmad
Participant…alternatively, you can also create a
NoBreakCharacter style and map it to theCODExml tag.Masood Ahmad
ParticipantTry this (both options F/C and Grep Styles)
GREP Find/Change:
Find What:\u\d{2}\.[\u\d]{1,2} .$
Change to:
Change Format:NoBreakCharacterStyleGREP Styles:
Apply Style:NoBreakCharacterStyle
To Text:\u\d{2}\.[\u\d]{1,2} .$and let me know if it works for you :)
Masood Ahmad
ParticipantHi Amit, Can you send us the snapshot with hidden characters and one with from the story editor. I would like to see the tags involved, as you said.
Masood Ahmad
ParticipantWell, Obi… I don’t expect such a language here on the Forum.
Maybe David has time to spend with you!Not me! …
find someone to make their work for free!
Boring! :(
I mean who write such a language on a forum. People who place their queries here are often new and more likely they didn’t know how to do something. Of course, there is a detailed documentation from Adobe but sometimes that doesn’t suffice. There are book available in the market on every subject hence we still go to institute and Trainers to get some knowledge.
Moreover, I have also noticed that you post your videos here in reply to other queries but never shared those scripts. To my experience you seems to be a new-bee who just stepped in the market to earn money. There are many qualified persons as members of this forum like Peter, Jongware, Keith, David, etc. I don’t recall they have ever spoken like that and have ever asked for a penny.
If you don’t have time “Not me! … ” then why are you here. Don’t read “Boring! :(” stuff. No one is forcing you to read or reply any posts on this forum.
Sorry @David, but I don’t encourage such talent.
May 3, 2017 at 6:00 am in reply to: anyone experiencing issues with latest update of ID CC (2017)? #94099Masood Ahmad
Participant@David, Can’t Adobe provide some shortcut (plugin/script) to reset the annoying preferences. You know most of the users fear while making any changes to the software, deleting this and that is a nightmare for some. I think it will be a good idea to have some sort of shortcut.
Masood Ahmad
ParticipantTo my understanding you need a Grep style:
GREP Styles:
Apply Style:CharacterStyleForTheXMLtags
To Text:<.+?(?=>)>Create a Character style that you would like to apply to the tags other than the text in between the XML tags. Then you can use the above settings using the GREP styles through paragraph styles.
Let me know if I’m thinking the same.
Masood Ahmad
ParticipantTo my knowledge, there isn’t any such feature in InDesign. Might be someone could do it with a script.
Masood Ahmad
ParticipantLike I said, no offense. I was just trying to make John feel homely; a sort of welcome.
John you’re always welcome with all sorts of queries and issues. We’ll try to learn and sort them out :) :)
PS: I was away from my computer from the last couple of days.
-
AuthorPosts
