Launching a URL in OSX is Cake?

Geoff Canyon gcanyon at inspiredlogic.com
Thu Jan 24 20:29:00 EST 2002


At 4:18 PM -0600 1/24/02, J. Landman Gay wrote:
>Geoff Canyon wrote:
>
>> It _is_ slightly more difficult, since you need to watch out for the "/" character in the legitimate path, which will have been translated to a ":"
>> 
>> You could either escape the ":" which always gives me a headache, or do a character-by-character switch. I generally go the headache route, but I have no aspirin handy at the moment...
>
>I sometimes do it this way:
>
>replace colon with numToChar(8) in tPath
>replace "/" with colon in tPath
>replace numToChar(8) with "/" in thePath
>
>I like using the ascii for "delete" as a placeholder, because it works
>fine and there's no way a user has typed it.
>
>I have some Tylenol if you want it...

You know, that's a good point about not being able to type "delete". I would have:

replace ":" with "-:" in tPath
replace "/" with "+:" in tPath
replace "-:" with "/" in tPath
replace "+:" with ":" in tPath

regards,

Geoff




More information about the metacard mailing list