OS delimiter question
Thierry Arbellot
thierry.arbellot at wanadoo.fr
Sat Mar 5 07:07:34 EST 2005
OS X is an Unix system, so the delimiter is slash
But for backward compatibility with OS 9, Finder and other apps use ":"
as delimiter
Rev works with Unix-style names, it means the delimiter is slash
If you need to convert between Unix and legacy Mac style, you could use
the functions revMacFromUnixPath and revUnixFromMacPath
regards,
Thierry
On 2005, Mar 5, , at 11:43, MisterX wrote:
> from http://www.osxfaq.com/tips/unix-tricks/ it seems it should be
> slash
> for shells... shouldn't it?
>
> Is there a translation at some point by runrev or a terminal mode that
> forces the translation maybe...
>
> I suppose Applescripts use the ":"...
>
> cheers
> Xavier
>
>
>
>> -----Original Message-----
>> From: use-revolution-bounces at lists.runrev.com
>> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
>> Thierry Arbellot
>> Sent: Saturday, March 05, 2005 10:55
>> To: How to use Revolution
>> Subject: Re: OS delimiter question
>>
>> do get shell("ls") and the folders both return "results 4:4:44"
>>
>> On 2005, Mar 5, , at 10:26, MisterX wrote:
>>
>>> aha!
>>>
>>> So if you do get shell("ls") and you have a folder named "results
>>> 4/4/44" what do you get?
>>>
>>> Xavier
>>>
>>>> -----Original Message-----
>>>> From: use-revolution-bounces at lists.runrev.com
>>>> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf
>> Of Thierry
>>>> Arbellot
>>>> Sent: Saturday, March 05, 2005 09:47
>>>> To: How to use Revolution
>>>> Subject: Re: OS delimiter question
>>>>
>>>>
>>>> On 2005, Mar 5, , at 08:29, Richard Gaskin wrote:
>>>>
>>>>> MisterX wrote:
>>>>>> all unixes use the "/" ?
>>>>>> and if osx's path delimiter is still ":" or has it gone to
>>>> slash form?
>>>>>
>>>>> The Finder lets me make a folder named "4/4/44", but not
>> one named
>>>>> "4:4:44"
>>>>>
>>>>> --
>>>>> Richard Gaskin
>>>>> Fourth World Media Corporation
>>>>> Developer of WebMerge: Publish any database on any Web site
>>>>> ___________________________________________________________
>>>>> Ambassador at FourthWorld.com http://www.FourthWorld.com
>>>>> _______________________________________________
>>>>
>>>> Right, but if you check with Terminal, the folder named
>> "4/4/44" in
>>>> the Finder is renamed "4:4:44" by the shell.
>>>>
>>>> Thierry
>>>>
>>>> "pourquoi faire simple quand on peut faire compliqué?"
>>>> proverbe Shadock
>>>>
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list