Converts a string that contains a hexadecimal number into a standard AppleScript integer.
hex to number (text, a string containing a hexadecimal number) returns number
set myNumber to (hex to number “A7EE22”) write log myNumber