I have a massive list of assorted links, some are “http://” URLs and some are “mailto:” email links and I’m just trying sort them out. When I run the following on my Intel mini it returns all the “http” web urls as expected:
set webList to {}
set mixList to {"http://www.fakesite.com", "mailto:bozo@bozotheclown.net", "http://www.apple.com", "mailto:steve@apple.com", "mailto:me@you.com"}
repeat with link in mixList
if link contains "http:" then
set webList to webList & link
end if
end repeat
BUT when I run the following it returns nothing:
set emailList to {}
set mixList to {"http://www.fakesite.com", "mailto:bozo@bozotheclown.net", "http://www.apple.com", "mailto:steve@apple.com", "mailto:me@you.com"}
repeat with link in mixList
if link contains "mailto:" then
set emailList to emailList & link
end if
end repeat
Now, here’s the even weirder thing; When I run these on my G4 PowerBook I get the exact opposite results. The mailto one works fine but the http one doesn’t. Any ideas on this? I’m totally stumped.