• 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: Weird AppleScript Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird AppleScript Problem


  • Subject: Re: Weird AppleScript Problem
  • From: Axel Luttgens <email@hidden>
  • Date: Sun, 04 Dec 2011 12:28:57 +0100

Le 4 déc. 2011 à 11:49, Bernardo Hoehl a écrit :

> Hi friends,
>
> I have found a problem with this code:
>
> considering case
> 	"ª" = "a"
> end considering
>
> On my understanding this should return "false".
> But it returns "true".

Hello Bernardo,

Why would you want it to return false?
Doesn't this one:

	considering case
		"ª" = "A"
		--> false
	end considering

appear right to you?


> What is the best way to detect characters like these?
> I have been running a script for years, using the following code:
>
> property forbidenList : every character of "ÁÂÄÀÃáâäàãÉÊËÈéêëèÍíîìïÓÔÖÒÕóôõöòÚÜÛÙúüûùçǺ"
> property replaceList : every character of "AAAAAaaaaaEEEEeeeeIiiiiOOOOOoooooUUUUuuuucCo"
>
> But this does not work for me when I have this special char.
> Any shell script suggestions?

What exactly do you want to do with that "ª" character? Replace it with "a"?

Axel


 _______________________________________________
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

  • Follow-Ups:
    • Re: Weird AppleScript Problem
      • From: Bernardo Hoehl <email@hidden>
References: 
 >Weird AppleScript Problem (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Weird AppleScript Problem
  • Next by Date: Re: Weird AppleScript Problem
  • Previous by thread: Weird AppleScript Problem
  • Next by thread: Re: Weird AppleScript Problem
  • Index(es):
    • Date
    • Thread