Wednesday, March 29, 2017

#1 2005-10-13 04:10:00 pm

julifos
Administrator
From: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Can I ignore the case/diacriticals/etc when working with a string?

Yes. You can use special statements called ignoring or considering statements.

You can ignore the following attributes: case, diacriticals, expansion, hyphens, punctuation and white space.

By default, AppleScript ignores only the case of strings. Example usage:

Applescript:

ignoring case and diacriticals
   "castle" = "Cåstle" --> true
end ignoring

To take into consideration some attributes, simple replace "ignoring" with "considering".

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.051 seconds, 9 queries executed ]

RSS (new topics) RSS (active topics)