• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to escape paragraph return and enter to InDesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to escape paragraph return and enter to InDesign


  • Subject: Re: How to escape paragraph return and enter to InDesign
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 10 Feb 2006 08:15:10 -0800
  • Thread-topic: How to escape paragraph return and enter to InDesign

Title: Re: How to escape paragraph return and enter to InDesign
Don't do that, each 'ASCII character' is a separate scripting addition call with overhead. Instead set a variable, or script property, to each.

For paragraph return you ought to be able instead to just to it this way, the best:

    "some text" & return & "some more text"

'return' is an AppleScript constant. For a line feed, set a property at the top of the script:

property lf : ASCII character 10


and then use

       "some text" & lf & "some more text"

If it really needs the "enter" key for column returns, try


property enterChar : ASCII character 3

and then

       "some text" & enterChar & "some more text"



--
Paul Berkowitz



From: Adam Bell <email@hidden>
Date: Fri, 10 Feb 2006 10:24:34 -0400
To: Applescript <email@hidden>
Subject: Re: How to escape paragraph return and enter to InDesign

\r and \n are ASCII characters 13 and 10 - try appending those.

On 2/10/06, David Wolfe <email@hidden  <mailto:email@hidden> > wrote:
Hi all,

I need to script some text to be placed into a text frame in
InDesign, including a paragraph return <return key> and a column
break <enter key>. I'm placing those characters into a string
literal, but they're being converted upon script run to an
Applescript line feed (that rotated L-thing), which my InDesign plug-
in, inData, doesn't understand. I've tried the normal escape
sequences \p and\n, but those aren't working either. Does anybody
know how I can get the proper characters into inDesign with an
Applescript?

Thanks,
David Wolfe
settingPace
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      ( email@hidden <mailto:email@hidden> )
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



--
Some minds remain open long enough for a truth to both enter and leave without processing.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: How to escape paragraph return and enter to InDesign (From: Adam Bell <email@hidden>)

  • Prev by Date: Re: How to escape paragraph return and enter to InDesign
  • Next by Date: Re: Determining the Default Mail App
  • Previous by thread: Re: How to escape paragraph return and enter to InDesign
  • Next by thread: Re: How to escape paragraph return and enter to InDesign
  • Index(es):
    • Date
    • Thread