• 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
Punctuation in Applescript's Text Item Delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Punctuation in Applescript's Text Item Delimiters


  • Subject: Punctuation in Applescript's Text Item Delimiters
  • From: Jay Young <email@hidden>
  • Date: Fri, 11 Jan 2002 21:02:04 -0600

Does anyone know if it is possible to grab punctuation characters in applescript's text item delimiters when the punctuation is the last character alone? Here's an example:

Today (tab) is (tab) Friday (tab) ? (return)

--script
set Applescript's text item delimiters to tab
tell app "QuarkXPress 4.11"
tell story 1 of text box 1 of document 1
try
set para1 to paragraph 1
set paraitm to text items of para1
set paragraph 2 to text item 4 of paraitm --trying to grab the question mark
end try
end tell --story 1
end tell --Quark
set Applescripts text item delimiters to ""

The only way I can get the question mark to flow out into paragraph 2 is if I add a text character after it. Is there any other possibilities? Thanks for your help.

Jay


  • Follow-Ups:
    • Re: Punctuation in Applescript's Text Item Delimiters
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Query for Paul or anyone about Entourage Categories
  • Next by Date: Copy to clipboard when non supported?
  • Previous by thread: Re: Query for Paul or anyone about Entourage Categories
  • Next by thread: Re: Punctuation in Applescript's Text Item Delimiters
  • Index(es):
    • Date
    • Thread