• 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: another short form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another short form


  • Subject: Re: another short form
  • From: Robert Poland <email@hidden>
  • Date: Tue, 9 Sep 2008 07:52:04 -0600

Ruby,

The only problem I saw was the use of smart quotes.

This works for me;

set aname to "I have string of about 70 characters, I want to check if characters 6,9,12,16,19,24 so on is = -"
if character 6 of aname = "e" then --(this gets too lengthy.)
beep
else
beep 2
end if
if character 9 of aname = "-" then
beep
end if


On Sep 9, 2008, at 7:33 AM, Script2 wrote:

I have string of about 70 characters, I want to check if characters 6,9,12,16,19,24 so on is = “-“

 

If character 6 of aname = “-“ (this gets too lengthy.)

 

If character 9 of aname = “-“

 

 

Thanks

 

Ruby

Bob Poland - Fort Collins, CO



 _______________________________________________
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

References: 
 >another short form (From: "Script2" <email@hidden>)

  • Prev by Date: Re: another short form
  • Next by Date: Re: another short form
  • Previous by thread: Re: another short form
  • Next by thread: Re: another short form
  • Index(es):
    • Date
    • Thread