Re: Simple text question
Re: Simple text question
- Subject: Re: Simple text question
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 7 Jul 2008 15:07:02 -0400
What you want is apparently not "word 3 through 6" of anything,
according to the AS def'n of "word". So why not back up, stop
programming, and tell us what the desired end result is?
On 7/7/08, Script2 <email@hidden> wrote:
> I have not used Python or Perl. If I don't get this resolved, I will look
> into both.
>
>
>
> Ruby
>
>
>
> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden]
> Sent: Monday, July 07, 2008 2:21 PM
> To: Script2
> Cc: email@hidden;
> applescript-users-bounces+chas_profitt=email@hidden
> Subject: Re: Simple text question
>
>
>
>
> I am not experience enough in the ways of Apple Script Foo... but if it
> supports Regular Expressions they are a likely answer to your question.
>
> Or you could solve your problem with Python or Perl which do support regular
> expressions.
>
>
> Charles Profitt
> Sr. Network Technician
> BrainBench Certified - (Master)Microsoft Security | (Master)Storage Area
> Networks Concepts | (Master)Microsoft Vista Desktop Administration
> 75 Barker Road
> Pittsford, NY 14534
>
> Important Notice:
> This communication, including any attachments, is intended only for the use
> of the individual(s) or entity(s) to which it is addressed and may contain
> information that is privileged, confidential and exempt from disclosure
> under applicable law. If the reader of this communication is not the
> intended recipient, you are hereby notified that any dissemination,
> distribution or reproduction of any part of this communication in any format
> is strictly prohibited. If you have received this communication in error,
> please notify us immediately by replying to this communication and deleting
> the original and any automatically generated copies. Thank-you for your
> co-operation.
>
>
>
>
> "Script2" <email@hidden>
> Sent by:
> applescript-users-bounces+chas_profitt=email@hidden
>
> 07/07/2008 01:02 PM
>
>
> To
>
> <email@hidden>
>
>
> cc
>
>
>
>
> Subject
>
> Simple text question
>
>
>
>
>
>
>
>
>
>
>
>
> Set file1text to read file (hotfile0 from 1
> Set gterm to every paragraph of file1text
> Repeat with aword in gterm
> Display dialog aword
> Set wordcnt to number of words in aword
> Repeat with x from 1 to wordcnt
> Display dialog word x of aword
> End repeat
> End repeat
>
>
>
> Sample text
>
> 6000[F]this is test (#1).
>
> 6001[F]this is test (#2).
>
>
> Display dialog aword - displays - 6000[F]this is test (#1).
>
> Word x of aword ignores the square bracket and the parenthesis. What am I
> missing? I tried set newword to word x of aword as string - did not work.
>
> 6000
> F
> This
> is
> test
> #
> 1
>
> I want to test which word contains [F].
>
> Thanks
>
> Ruby
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> tsford.monroe.edu>
> sford.monroe.edu
> Archives: <http://lists.apple.com/archives/applescript-users>
> http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
>
>
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden