Can't Apply Styles
I have a working Pages doc. There is a ton of info in a word doc I need to include. When I copy paste it into Pages, I then can not apply styles from the style drawer. What is that all about? Is there some way to be able to apply styles to info I paste? I dropped word because it displays ridiculous behavior like this. Is pages just as much of a useless time waster? Any help would be appreciated I'm extremely frustrated. Who has time for this kind of annoyance?!?!?!
You have to select the text you want to use a style on.
For more information on Styles download the Pages User Guide. It is downloadable from your Pages Help menu.
Similar Messages
-
I am trying to apply background shading to alternate lines of text by creating two paragraph styles and naming each as the "next style".
This works when manually entering text - but I can't figure out if it is possible to apply it to existing copy with out applying the styles to each line individually.
Thanks for any help
dSelect multiple paragraphs of text, then right-click on the name of your first style in the Paragraph Styles panel. "Apply Style, Then Next Style" should be one of the options.
-
Hi Adobe comunity,
As the title of this discussion states, can I apply "Indent to here" within paragraph styles. Please take a look at the attached image which will give you an idea of my dilema.
Any info on the matter would be greatly appreiated.
PixelNovae
MAC 10.6.8
CS6 / ID: 8.0.1Peter,
Thanks. this is definitely a work around. The only problem with this solution is that if a document has a ton of bullet levels, the designer has to perform and keep up a ton of math in order to do proper levels. Which is cumbersome. At the same time time, the Indent To Here (ITH) command is so much more cleaner and efficient specially when it comes to visual alignment of the when "shape shifting bullets" are used.
Example:
i. bullet
ii. bullet
iii. bullet
In the above example, the ITH would create clean copy alignments thorought on all secondary line copy while the -/+ indents would not be able to remain consitent (unless the designer has to tweak every bullet with indent levels). That is, on the above example, the second lines on bullets ii and iii would be irregularly aligned.
So i take it one cannot input the ITH command onto the "Number Field". Hmmph. lol -
Font style can not applied with the eye dropper ??!
I am working with font "not a free one" and it has a problem that I can not take its style with the eye dropper,
it only gives the same font name but the shape of font did not appliedIt's necessary to know if the text is under Illustrators full control or if the other program interferes.
Also it's still not quite clear what exactly you are doing in which order.
Are you using character and paragraph styles?
Normally if you select words or paragraphs with Illustrators text tool, you can pick up styles from other texts with the eyedropper. So how exactly are you using the tools? -
How to apply style sheet (.css) in Weblogic directory listing
Hi,
We are migrating a directory listing application from Apache to Weblogic.
Earlier we did this by Apache httpd.conf entry like below :
<Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder">
IndexOptions FancyIndexing FoldersFirst NameWidth=* XHTML
IndexOrderDefault Descending Date
IndexStyleSheet "/css/style.css"
</Directory>
/opt/apache/httpd-2.1.9/htdocs folder has all it's usual resource files.
We were able to see documents in "Myreportfolder".
Now we have moved to Weblogic and using virtual directory mapping as below and we are trying to achieve the same thing:
<?xml version="1.0" encoding="UTF-8" ?>
- <wls:weblogic-web-app xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
- <wls:container-descriptor>
<wls:index-directory-enabled>true</wls:index-directory-enabled>
<wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by>
</wls:container-descriptor>
- <wls:virtual-directory-mapping>
<wls:local-path>/Myreportfolder</wls:local-path>
<wls:url-pattern>/*</wls:url-pattern>
</wls:virtual-directory-mapping>
<wls:context-root>/getreports</wls:context-root>
</wls:weblogic-web-app>
We are able to view the reports but we do not get look-and-feel of Apache like directory listing.
but we encounter below issues:
1) File/Folder icons are not visible - we want to use style sheets in http header from the response that is returned from weblogic server
2) Filename is limited to 29 characters when it is showing
3) Files are not sortable as Descending order - we sorted using tag <wls:index-directory-sort-by>LAST_MODIFIED</wls:index-directory-sort-by> but the latest file is shown at the last
We are thinking that Weblogic must be having some configuration like Apache httpd.conf where we can apply style sheets (css ).
We would appreciate af anyone can provide better insight into the issue.
or is it possible to extend weblogic.servlet.fileservlet class to serve this purpose.
Thanks & regards,
RabiHi Vikash,
Check the below links which will you idea on the same.
Stylesheet for WDA without integrating in SAP Portal
Apply custom css to WebDynpro application
Thanks
KH -
Applying a shortcut to "Apply "style" then next style"
In CS2, is there a way to apply a keyboard shortcut to the "Apply 'style name' then next style" command in the paragraph styles menu.
thanks
jonGerald,
I retrieved the script for CS2 which I've copied below. I changed the name of the tag to fit my book but I have a problem running it. When it gets to the line:
if (app. selection. length> 0) {
I get an error: undefined is not an object
Can you offer any quick help? Thanks very much. Script below:
/ FirstAndNextStyles.jsx
var myFirstPStyle = "X Appendix Co. Name";
Object.prototype.isText = function()
switch(this.constructor.name)
case "InsertionPoint":
case "Character":
case "Word":
case "TextStyleRange":
case "Line":
case "Paragraph":
case "TextColumn":
case "Text":
case "TextFrame":
return true;
default :
return false;
if (app.selection.length > 0) {
var myDoc = app.documents[0];
for (oneSel = 0; oneSel < app.selection.length; oneSel++) {
if (app.selection[oneSel].isText()) {
// apply paragraph style to the first of selected paragraphs
try {
app.selection[oneSel].paragraphs[0].appliedParagraphStyle = myDoc.paragraphStyles.item (myFirstPStyle);
catch(e){
// apply paragraphs next style to the following paragraphs
if (app.selection[oneSel].paragraphs.length > 1) {
for (oneP = 1; oneP < app.selection[oneSel].paragraphs.length; oneP++)
app.selection[oneSel].paragraphs[oneP].appliedParagraphStyle = app.selection[oneSel].paragraphs[oneP-1].appliedParagraphStyle.nextStyle;
else if ((app.selection[oneSel].paragraphs.length == 1) && (app.selection[oneSel].paragraphs[0].insertionPoints[-1].paragraphs[0])) {
app.selection[oneSel].paragraphs[0].insertionPoints[-1].paragraphs[0].appliedParagraphSty le = app.selection[oneSel].paragraphs[0].appliedParagraphStyle.nextStyle; -
Hi all,
I am using InDesign CS3 on OS 10.5. I'm trying to write something in Applescript that can look at a document and give me the text that has a certain applied style.
For example, if a document contained the text "Hello, world" and had an applied paragraph style called "Greeting," then what I want is to use my script to tell that document something like this:
tell application "Adobe Indesign CS3"
set theDoc to document 1
set theText to get every paragraph of theDoc whose applied paragraph style is "Greeting"
end tell
theText
-->should return: "Hello, world"
Obviously, I tried that script, but it doesn't work. I get the error "Adobe InDesign CS3 got an error: Cant get every paragraph of document "MyDocument.indd" whose applied paragraph style = "Greeting"."
I'm not sure if I am just using the wrong commands or what. Any help is greatly appreciated!Hi Hayden,
The trouble is, theDoc doesn't have paragraphs. If you open the InDesign dictionary and look at the document object, you'll see text frames, and you'll see stories, but no paragraphs. To get all of the paragraphs, you'd use something like this:
set theText to every paragraph of every story
But getting every paragraph of every story whose applied paragraph style is a specific style is harder to do using a filter ("whose") clause, because it has multiple conditions. Shane can probably do it, but I'm not having much luck. All the same, why bother? InDesign has a perfectly good find text method that will do what you want. Something like this:
tell application "Adobe InDesign CS3"
--Clear the find text preferences
set find text preferences to nothing
set applied paragraph style of find text preferences to paragraph style "Greeting" of document 1
tell document 1
set myFoundItems to find text
end tell
end tell
Thanks,
Ole -
How to apply style sheets to table layout
hi i want to apply styles to my table layout region, i gave style sheets which are in OAF myhtml\OA_HTML\cabo\styles but i dint find any changes in my table layout, can any give one give me an idea of how to do it....
Check the OAF personalization guide for details on custom CSS. It won't be possible for me to summarize the whole thing here.
--Shiv -
Can I somehow apply styles to subpictures in Encore? Basically, I want to customize the look of text-buttons in three states: normal, selected and activated using styles (eg to make them glow,change stroke color etc) rather then simply change the color of the text.
I also tried to find an option to make a text as text or as button transperent (with a colour stroke style applied so you can actually read it) but couldn't :( Is it at all possible?
Thanks for any adviceIn a word, no.
You may be able to apply styles, but they will be ignored when you preview the menu or build the DVD.
In the DVD-Video format, a subpicture is defined as a 2-bit RLE graphic overlay - one color value, and one opacity value. That means no drop shadows, glows, gradients, etc can be rendered by DVD players for subpicture information.
A color table is used for the subpicture layer that allows you to combine up to three of these 2 bit graphics. Using this color table, you can get a little tricky and use up to three different 2-bit graphics to make the subpicture look a bit more impressive. There's a tutorial on this site that shows how to do that.
But even using this trick, DVD-Video subpictures will never even get close to looking like Photoshop styles on a 32 bit monitor. :)
I don't understand the second part of your post. Can you clarify what it is you are trying to do there? (it seems separate from the styles question) -
Create/find tables and apply style
Hello,
I'm very new to scripting. I want to learn the basics like creating a table, creating anchored frames, textframes, etc.
Now, I want to create/find tables in a document and I would like to apply styles. I saw a script to do this. When I paste the script in Extendscript CS4, than the program crash.
The program crash in part 1. When I create another script with only part 2 (see //part 2) then there is no problem.
What do i wrong? And can anyone tell me what part 1 of the script do?
Thanks,
// part 1
// using your version; I'd prefer to return 0 if table not found
function findTable(obj) {
while (obj.constructor.name != "Table") {
obj = obj.parent;
if (obj.constructor.name == "Application") {
throw "Can't find table"
return obj
// part 2
var myTable = 0;
if (app.documents.length > 0 && app.selection.length > 0)
myTable = findTable(app.selection[0]);
// check for at least enough rows for 1 top row, 1 body row, 1 bottom row
if (myTable != 0 && myTable.rows.length >= 3) {
// delete all rules; set insets to 0
myTable.cells.everyItem().appliedCellStyle = "[None]";
// format bottom row
// (remember rows uses 0-based count)
a = myTable.rows.length - 1;
myTable.rows[a].cells.everyItem().appliedCellStyle = "4.cell_body_last";
// format middle rows
first = 1;
last = myTable.rows.length - 2;
for (a = first; a <= last; ++a)
myTable.rows[a].cells.everyItem().appliedCellStyle = "3.cell_body";
// format top row
a = 0;
myTable.rows[a].cells.everyItem().appliedCellStyle = "2.cell_header";Part 1 expects the text cursor to be anywhere inside a table -- either in the regular text, or with a cell, row, column, or the entire table selected.
It walks "up" using its parent until it arrives at the table object itself.
This will only work if the text cursor actually is anywhere inside a table. It does nothing when you are somewhere else, and it only works with the "current" table. -
How to get certain applied styles using script?
Hi All,
I need to know how to get certain applied styles using ID Scripting. I don't have much experience in InDesign so need some help.
Here is a screenshot with a sample text with the said styles applied and highlighted.
I need to know what texts in my document have these styles applied like All Caps, Strikethrough, Underline, Subscript and Superscript etc.
Please help.
Thanks!Hi Poortip87
The first thing you have to understand is how to refer to "where" you want to apply the style.
If you want the script to apply the style to the selected text then you would use for example app.selection[0].strikeThru = true;
If you for example want to underline the last word of the first paragraph of the first story you would use app.activeDocument.stories[0].paragraphs[0].words[-1].underline = true;
If you just wanted the first letter of that word underlined then you would add .characters[0] after the words[-1]
To for example apply All Caps to all the text in all the stories you would use
app.activeDocument.stories.everyItem().texts[0].capitalization = Capitalization.ALL_CAPS;
The easiest way to find how to set properties to a selections is to set them manually and make the selection and then run the script below.
You should be able to find all the properties you want very easily after running the script.
Or you can use Jongwares excellent reference guide. Indesign JavaScript Help
HTH
Trevor
// script to show most of the selection properties by Trevor
// Creative-Scripts.Com (Still not ready!) available (sometimes) for custom scripts $$$
// scripts {at} Creative-Scripts [dot] Com
$.level = 0; // set debug mode to allow try catch (not read only as stated in manual);
if (!app.selection.length) exit();
var c = 0, s = app.selection[0], p,
a = [], n, er;
for (n in s) {
try {
p = s[n];
if (p && p.constructor.name === "Enumerator") p = getEnum(p ,n);
a[c++] = n + ": " + p;
} catch (er) {a[c++] = n + ": ???"}
var f = new File (Folder.temp + +(new Date) + ".txt");
f.open('r');
f.encoding = "UTF-8";
f.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";
f.open('w');
f.write("\uFEFF" + a.join("\r"));
f.close();
$.sleep(300);
f.execute(true);
function getEnum (q, n) {
var enums = ["AcrobatCompatibility",
"AddPageOptions",
"AdornmentOverprint",
"AlignDistributeBounds",
"AlignOptions",
"AlignmentStyleOptions",
"AlternateGlyphForms",
"AlternatingFillsTypes",
"AnchorPoint",
"AnchorPosition",
"AnchoredRelativeTo",
"AnimationEaseOptions",
"AnimationPlayOperations",
"AntiAliasType",
"ArrangeBy",
"ArrowHead",
"AssetType",
"AssignmentExportOptions",
"AssignmentStatus",
"AutoEnum",
"AutoSizingReferenceEnum",
"AutoSizingTypeEnum",
"BalanceLinesStyle",
"BaselineFrameGridRelativeOption",
"BaselineGridRelativeOption",
"BehaviorEvents",
"BevelAndEmbossDirection",
"BevelAndEmbossStyle",
"BevelAndEmbossTechnique",
"BindingOptions",
"BitmapCompression",
"BlendMode",
"BlendingSpace",
"BookContentStatus",
"BookletTypeOptions",
"BoundingBoxLimits",
"BuildingBlockTypes",
"BulletCharacterType",
"BulletListExportOption",
"Capitalization",
"ChangeBackgroundColorChoices",
"ChangeCaseOptions",
"ChangeConditionsModes",
"ChangeMarkings",
"ChangeTextColorChoices",
"ChangeTypes",
"ChangebarLocations",
"ChangecaseMode",
"ChapterNumberSources",
"CharacterAlignment",
"CharacterCountLocation",
"CharacterDirectionOptions",
"ClippingPathType",
"ColorModel",
"ColorOutputModes",
"ColorRenderingDictionary",
"ColorSettingsPolicy",
"ColorSpace",
"ComposeUsing",
"CompressionQuality",
"ConditionIndicatorMethod",
"ConditionIndicatorMode",
"ConditionUnderlineIndicatorAppearance",
"ContainerType",
"ContentType",
"ContourOptionsTypes",
"ConvertPageBreaks",
"ConvertShapeOptions",
"ConvertTablesOptions",
"CoordinateSpaces",
"CopyrightStatus",
"CornerOptions",
"CreateProxy",
"CrossReferenceType",
"CursorTypes",
"CustomLayoutTypeEnum",
"DataFormat",
"DefaultRenderingIntent",
"DesignOptions",
"DiacriticPositionOptions",
"DigitsTypeOptions",
"DimensionsConstraints",
"DisplayOrderOptions",
"DisplaySettingOptions",
"DistributeOptions",
"DocumentIntentOptions",
"DocumentPrintUiOptions",
"DynamicDocumentsJPEGQualityOptions",
"DynamicDocumentsTextExportPolicy",
"DynamicMediaHandlingOptions",
"DynamicTriggerEvents",
"EPSColorSpace",
"EPSImageData",
"EditingState",
"EmptyFrameFittingOptions",
"EndCap",
"EndJoin",
"EpubCover",
"EpubVersion",
"EventPhases",
"ExportFormat",
"ExportLayerOptions",
"ExportOrder",
"ExportPresetFormat",
"ExportRangeOrAllPages",
"FeatherCornerType",
"FeatherMode",
"FeatureSetOptions",
"FindChangeTransliterateCharacterTypes",
"FirstBaseline",
"FitDimension",
"FitMethodSettings",
"FitOptions",
"Fitting",
"FlattenerLevel",
"Flip",
"FlipValues",
"FloatingWindowPosition",
"FloatingWindowSize",
"FollowShapeModeOptions",
"FontDownloading",
"FontEmbedding",
"FontStatus",
"FontTypes",
"FootnoteFirstBaseline",
"FootnoteMarkerPositioning",
"FootnoteNumberingStyle",
"FootnotePrefixSuffix",
"FootnoteRestarting",
"GIFOptionsPalette",
"GlobalClashResolutionStrategy",
"GlobalClashResolutionStrategyForMasterPage",
"GlowTechnique",
"GoToZoomOptions",
"GradientType",
"GridAlignment",
"GridViewSettings",
"GuideTypeOptions",
"HeaderFooterBreakTypes",
"HeaderTypes",
"HorizontalAlignment",
"HorizontalOrVertical",
"HyperlinkAppearanceHighlight",
"HyperlinkAppearanceStyle",
"HyperlinkAppearanceWidth",
"HyperlinkDestinationPageSetting",
"ICCProfiles",
"IconSizes",
"ImageAlignmentType",
"ImageConversion",
"ImageDataTypes",
"ImageExportOption",
"ImageFormat",
"ImagePageBreakType",
"ImageResolution",
"ImageSizeOption",
"ImportFormat",
"ImportPlatform",
"ImportedPageCropOptions",
"InCopyUIColors",
"IndexCapitalizationOptions",
"IndexFormat",
"InkTypes",
"InnerGlowSource",
"InteractiveElementsOptions",
"InteractivePDFInteractiveElementsOptions",
"JPEGOptionsFormat",
"JPEGOptionsQuality",
"JoinOptions",
"JpegColorSpaceEnum",
"Justification",
"KashidasOptions",
"KentenAlignment",
"KentenCharacter",
"KentenCharacterSet",
"KinsokuHangTypes",
"KinsokuSet",
"KinsokuType",
"LanguageAndRegion",
"LayoutRuleOptions",
"Leading",
"LeadingModel",
"LibraryPanelViews",
"LineAlignment",
"LineSpacingType",
"LinkStatus",
"ListAlignment",
"ListType",
"LiveDrawingOptions",
"Locale",
"LocationOptions",
"LockStateValues",
"MapType",
"MarkLineWeight",
"MarkTypes",
"MatrixContent",
"MeasurementUnits",
"MojikumiTableDefaults",
"MonoBitmapCompression",
"MoviePlayOperations",
"MoviePosterTypes",
"NestedStyleDelimiters",
"NoteBackgrounds",
"NoteColorChoices",
"NothingEnum",
"NumberedListExportOption",
"NumberedParagraphsOptions",
"NumberingStyle",
"OTFFigureStyle",
"ObjectTypes",
"OpenOptions",
"OpenTypeFeature",
"OutlineJoin",
"OverrideType",
"PDFColorSpace",
"PDFCompressionType",
"PDFCrop",
"PDFJPEGQualityOptions",
"PDFMarkWeight",
"PDFProfileSelector",
"PDFRasterCompressionOptions",
"PDFXStandards",
"PNGColorSpaceEnum",
"PNGExportRangeEnum",
"PNGQualityEnum",
"PPDValues",
"PageBindingOptions",
"PageColorOptions",
"PageLayoutOptions",
"PageNumberPosition",
"PageNumberStyle",
"PageNumberingOptions",
"PageOrientation",
"PagePositions",
"PageRange",
"PageReferenceType",
"PageSideOptions",
"PageTransitionDirectionOptions",
"PageTransitionDurationOptions",
"PageTransitionOverrideOptions",
"PageTransitionTypeOptions",
"PageViewOptions",
"PaginationOption",
"PanelLayoutResize",
"PanningTypes",
"PaperSize",
"PaperSizes",
"ParagraphDirectionOptions",
"ParagraphJustificationOptions",
"PathType",
"PathTypeAlignments",
"PdfMagnificationOptions",
"PerformanceMetricOptions",
"PlacedVectorProfilePolicy",
"PlayOperations",
"PointType",
"Position",
"PositionalForms",
"PostScriptLevels",
"PreflightLayerOptions",
"PreflightProfileOptions",
"PreflightRuleFlag",
"PreflightScopeOptions",
"PreviewPagesOptions",
"PreviewSizeOptions",
"PreviewTypes",
"PrintLayerOptions",
"PrintPageOrientation",
"Printer",
"PrinterPresetTypes",
"Profile",
"ProofingType",
"RangeSortOrder",
"RasterCompressionOptions",
"RasterResolutionOptions",
"RecordSelection",
"RecordsPerPage",
"RenderingIntent",
"RepaginateOption",
"ResizeConstraints",
"ResizeMethods",
"ResolveStyleClash",
"RestartPolicy",
"RotationDirection",
"RowTypes",
"RubyAlignments",
"RubyKentenPosition",
"RubyOverhang",
"RubyParentSpacing",
"RubyTypes",
"RuleDataType",
"RuleWidth",
"RulerOrigin",
"SWFBackgroundOptions",
"SWFCurveQualityValue",
"Sampling",
"SaveOptions",
"ScaleModes",
"Screeening",
"ScreenModeOptions",
"ScriptLanguage",
"SearchModes",
"SearchStrategies",
"SelectAll",
"SelectionOptions",
"Sequences",
"ShadowMode",
"SignatureSizeOptions",
"SingleWordJustification",
"SmartMatchOptions",
"SnapshotBlendingModes",
"SortAssets",
"SoundPosterTypes",
"SourceFieldType",
"SourceSpaces",
"SourceType",
"SpanColumnCountOptions",
"SpanColumnTypeOptions",
"SpecialCharacters",
"SpreadFlattenerLevel",
"StartParagraph",
"StateTypes",
"StaticAlignmentOptions",
"StoryDirectionOptions",
"StoryHorizontalOrVertical",
"StoryTypes",
"StrokeAlignment",
"StrokeCornerAdjustment",
"StrokeFillProxyOptions",
"StrokeFillTargetOptions",
"StrokeOrderTypes",
"StyleConflict",
"StyleSheetExportOption",
"SyncConflictResolution",
"TabStopAlignment",
"TableDirectionOptions",
"TableFormattingOptions",
"TagRaster",
"TagTextExportCharacterSet",
"TagTextForm",
"TagTransparency",
"TagType",
"TagVector",
"TaggedPDFStructureOrderOptions",
"TaskAlertType",
"TaskState",
"TextExportCharacterSet",
"TextFrameContents",
"TextImportCharacterSet",
"TextPathEffects",
"TextStrokeAlign",
"TextTypeAlignments",
"TextWrapModes",
"TextWrapSideOptions",
"ThumbsPerPage",
"TilingTypes",
"ToolTipOptions",
"ToolsPanelOptions",
"TrapEndTypes",
"TrapImagePlacementTypes",
"Trapping",
"UIColors",
"UITools",
"UndoModes",
"UpdateLinkOptions",
"UserInteractionLevels",
"VariableNumberingStyles",
"VariableScopes",
"VariableTypes",
"VersionCueSyncStatus",
"VersionState",
"VerticalAlignment",
"VerticalJustification",
"VerticallyRelativeTo",
"ViewDisplaySettings",
"ViewZoomStyle",
"WarichuAlignment",
"WatermarkHorizontalPositionEnum",
"WatermarkVerticalPositionEnum",
"WhenScalingOptions",
"XFLRasterizeFormatOptions",
"XMLElementLocation",
"XMLElementPosition",
"XMLExportUntaggedTablesFormat",
"XMLFileEncoding",
"XMLImportStyles",
"XMLTransformFile",
"ZoomOptions"];
var l = enums.length,
s = q.toString(), e, er, a;
while (l--) {
try {
e = $.global [enums[l]];
if (e.hasOwnProperty (s) && q === e[s]) {
a = e.reflect.properties;
a.pop();
a = (a.length < 2) ? "" : "\r[Possible " + enums[l]+ " Enumerations for " + n + "]:\r" + enums[l] + "." + a.join ("\r" + enums[l] + ".");
return enums[l] + "." + q.toString () + a;
catch (er) {};
return "???." + q.toString (); -
I'm a traditional ink, watercolor illustrator who's curious if I can translate my style into adobe illus.?
mikel,
You may download a trial, and then try and compare the following:
A) File>Place a scan of your present artwork, then try out the different Object>Image Trace settings, Object>Image Trace>Expand and see the resulting paths;
B) Use the Pen Tool and the Paintbrush Tool, in basically the same way as you are used to, and apply different brushes;
C) Read up on the Pen Tool (in the Helpfile and in places like the one linked to below), and use it in its fundamental different way.
https://www.adobe.com/cfusion/search/index.cfm?cat=support&term=Pen%20Tool&loc=en_US&self= 1&lr=en_US&site=illustrator_all&product=illustrator
That may give you the first glimpse of an answer to your question. -
In cf9 cflayout type=accordion can you apply stylesheet
in cf9 cflayout type=accordion can you apply stylesheet
You can use the "style" property to ad CSS style specification that defines layout styles
Same go for each of the CFLAYOUTAREA. -
[WPF] DataGrid: apply style to text into cell from codebehin
Hi,
in a dataGrid, can I apply a style to text into cell from code behind?
I know that I can use DataTrigger, but I can't add a new property to model that it is binds with datagrid.
With
DataGridRow tmpRowSelected = dgProperties.ItemContainerGenerator.ContainerFromItem(dgProperties.SelectedItem) as DataGridRow;
I get my selecte row, I would apply TextDecorations.Strikethrough to text into the cells of this row.
Thanks.You could use a helper method that finds all TextBlock elements within the DataGridRow in the visual tree and set any property (TextDecorations, Style, etc.) of these:
DataGridRow tmpRowSelected = dgSample.ItemContainerGenerator.ContainerFromItem(dgSample.SelectedItem) as DataGridRow;
if (tmpRowSelected != null)
foreach (TextBlock txtBlock in FindVisualChildren<TextBlock>(tmpRowSelected))
txtBlock.TextDecorations = TextDecorations.Strikethrough;
private static IEnumerable<T> FindVisualChildren<T>(DependencyObject depObj) where T : DependencyObject
if (depObj != null)
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(depObj); i++)
DependencyObject child = VisualTreeHelper.GetChild(depObj, i);
if (child != null && child is T)
yield return (T)child;
foreach (T childOfChild in FindVisualChildren<T>(child))
yield return childOfChild;
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. -
Applying styles to place assest from AppleScript. CS5.5
We are running a script that based on a csv file, loads various elements from a library then imports XML. An example of these elements might be designed to have 4 separate item records within it and each item record might contain a few text boxes and an image and each of these items have xml tags. To better understand, think of a supermarket circular where they might have 4 meat items in one section with a description, size, price and an image. We've broken it into different sections and based on data coming from our database we can relate to a specific element in our indesign library and know how many items will need to be loaded in that section. This all works fine so far and is pretty cool how it loads but we are looking to maybe pass a basic page theme which might be both object and paragraph styles so we'd like to apply these styles through our script because it is possible that different elements might get different styles in same load or even same elements might be re-used in same load and have different styles so really can't define elements with styles we'd like or associate specific xml tages with styles because might be different in each element.
I can in Applescript apply paragraph and object styles to by either index like applying style x to paragraph 1 but would like to do it to element that we placed on page. Here is an example of our script to maybe better understand. Look for comments where we place our assets(elements) on page. Looking to how we can apply style to say paragraph 1 or text frame 1 of placedAsset says can't get text frame 1 or paragraph 1 of group xxx.
Tried variations of:
tell application "Adobe InDesign CS5.5"
set myDocument to active document
set myPage to active page of active window
set placedAsset to place asset asset "7" of library "GT.indl" on myDocument
move placedAsset to {0.65, 0.6}
tell myDocument
set myStyle to paragraph style "Style1"
set objStyle to object style "objStyle"
--This works for just applying styles by index
tell paragraph 1 of text frame 1
apply paragraph style using myStyle
end tell
tell text frame 1
apply object style using objStyle
end tell
--This gives error described above
tell text frame 1 of placedAsset
apply object style using objStyle
end tell
end tell
end tell
Script which runs now but is not set to apply styles yet:
try
set CSVstr to "Please locate your CSV file..."
set CSV_File to (choose file with prompt CSVstr) as text
set csvData to read file CSV_File
set csvEntries to paragraphs of csvData
tell application "Adobe InDesign CS5.5"
set myDocument to active document
tell XML view preferences
set show attributes to false
set show structure to true
set show tagged frames to false
set show tag markers to false
set show text snippets to true
end tell
tell XML import preferences
set allow transform to false
set create link to XML to false
set ignore unmatched incoming to true
set ignore whitespace to true
set import CALS tables to true
set import style to merge import
set import text into tables to false
set import to selected to false
set remove unmatched existing to false
set repeat text elements to true
end tell
set myPage to active page of active window
set AppleScript's text item delimiters to ","
repeat with i from 1 to count csvEntries
set csvEntry to csvEntries's item i
set {fldElement, fldLocationX, fldLocationY} to csvEntry's text items
-- display dialog fldElement
set placedAsset to place asset asset fldElement of library "GTElements.indl" on myDocument
move placedAsset to {fldLocationX, fldLocationY}
--This is where we'd like to apply styles to placed asset contents. This placed asset will have a few text frames and at
--least one image. We would just pass extra fields in our csv file with names of styles to be applied
end repeat
set AppleScript's text item delimiters to {""}
tell myDocument
set XMLstr to "Please locate your XML file..."
set XML_File to (choose file with prompt XMLstr)
import XML from XML_File
end tell
tell application "Adobe InDesign CS5.5"
set find text preferences to nothing
set change text preferences to nothing
set find what of find text preferences to "mykzlplx"
set change to of change text preferences to ""
tell active document
change text
end tell
set find text preferences to nothing
set change text preferences to nothing
set find what of find text preferences to "Â"
set change to of change text preferences to ""
tell active document
change text
end tell
set find text preferences to nothing
set change text preferences to nothing
end tell
end tell
end tryIt would be a lot easier to help you if you were more succint. You should practice narrowing down the problem to the smallest possible case that demonstrates it. This is a good skill for two reasons: (1) It makes it easier to find the problem yourself (2) It makes it easier for others to help you.
I believe your problem is you are asking for the first textframe of the placed asset:
set placedAsset to place asset asset "7" of library "GT.indl" on myDocument
tell myDocument
--This gives error described above
tell text frame 1 of placedAsset
apply object style using objStyle
end tell
end tell
end tell
At least in JavaScript, the place command returns an array of objects, without regard to type. I suspect that's true in AS as well.
So you probably want something like "tell first item of placedAsset" rather than "text frame 1". And if you want to make sure it is a text frame, because there are other things in the placedAsset, you'll need to use a filter. ("first item of placedAsset whose constructor is textFrame" or something like that).
Again, my applescript is really rusty, but I think that's the general idea.
Maybe you are looking for
-
What can i do?
-
Anyway to reinstall Trial?
Hi, I am trying to use the Motion 2 trial, but can't since I get the message that it has expired. I down loaded the installer a couple months ago, and installed the program, but never had the chance to spend any time with it besides opening it up onc
-
I'm not sure I want a subscription if I can't get an answer to questions I may have. Not all issues are covered in the Q & As and forums.
-
My hard drive is full!!!! Help me please!!! PC not a Mac
I have two drives on my computer, a C and D drive. My itunes is installed on my C drive and it is currently full. My D drive is almost empty. Is there any way I can transfer the itunes program to my d drive? I've attempted this but all it does it mov
-
Hi all not long to go xmas now and waiting for the i pod touch. I have been viewing the forum for the last few weeks and noticed the number of owners who have faults after updating the software. Do you have the opption not to update(thinking along th