Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Updated Script -- handler attempt for street number' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Updated Script -- handler attempt for street number
Authored by: darrick on Jan 20, '05 08:10:23PM
i 'm trying to improve this super script a bit by trying to get the street number and name with this language


set savedTextItemDelimiters to AppleScript's text item delimiters
		try
			set street_address to (street of _address) as string
			set AppleScript's text item delimiters to {","}
			set number_and_street to first text item of street_address
			--reset the text item delimiters:
			set AppleScript's text item delimiters to savedTextItemDelimiters
		on error
			--also reset text item delimiters in case of an error:
			set AppleScript's text item delimiters to savedTextItemDelimiters
			beep
		end try
but i'm burned out and cannot get it to work (it should grab whatever comes before the first comma, which should be the street number and the street name before the apartment number or suite number)

[ Reply to This | # ]