-
Notifications
You must be signed in to change notification settings - Fork 6
Line Feeds And Carrige Returns
fabiantheblind edited this page Oct 11, 2012
·
2 revisions
/*
author: @fabiantheblind
This script shows the diffrence between line feeds and carridge returns
or the answer to the question:
Why is there only one paragraph in the textfile i've loaded
*/
var doc = app.documents.add();
var page = doc.pages[0];
var tf = page.textFrames.add({geometricBounds:[12.7,12.7,297-12.7,210-12.7]});
app.textPreferences.showInvisibles = true;
tf.contents = "This is a Linefeed\nThis is a CarrigeReturn\r";
This wiki is maintained by:
fabiantheblind
Collaborators:
- How To Install And Run Scripts
- References And Links
- Tools
- First Session
- Comments
- Extended JavaScript Guide
- Variables And Operations
- Conditionals
- Arrays
- Output And Interaction
- Objects
- Classes
- Loops
- Functions
- Recursive Functions
- The ID Scripting DOM
- ExtendScript
- Inspect Properties
- app
- Documents
- Pages And Margins
- Masterspreads
- Layers
- GeometricBounds and Coordinates
- Text
- Line Feeds And Carrige Returns
- Simple Find And Change Grep
- Simple Find And Change Text
- Text Analysis
- Text Analysis ID FC
- Text Find Locations
- InsertionPoints
- Styles
- Objectstyles
- Rectangles Ovals Polygons
- Matrix
- Outlines Groups Alignment
- Graphic Lines
- Spiro
- Colors And Swatches
- HSL Color Wheel
- Pathfinder
- Fonts
- Transformation Matricies
- Duplicate And Transform
- Includes
- Storing Data In A Target Engine
- Create And Read Files
- Read In JSON From File And Eval
- Delay And View
- ScriptUI Resource Strings