slash in file name on OS X

Jim Ault JimAultWins at yahoo.com
Wed Sep 5 22:52:39 EDT 2007


Not too difficult to convert the filename slashes to another char.

--do this for each folder that contains poorly named files
set the defaultFolder to pathToFolder
put the files into fileList
filter fileList with "*/*"
set the itemdel to "/"

repeat for each line LNN in fileList
     put LNN into userFileName
    replace "/" with "|" in userFileName
    rename ( LNN) to (userFileName)
end repeat

Hope this helps

Jim Ault
Las Vegas

On 9/5/07 5:51 PM, "Josh Mellicker" <josh at dvcreators.net> wrote:

> Thanks Phil, I figured as much.
> 
> These will be already-captured video files, in which some people put
> the date... grrrrr!
> 
> 
> On Sep 5, 2007, at 5:20 PM, Phil Davis wrote:
> 
>> Josh Mellicker wrote:
>>> If there is a slash in the file name on OS X, Revolution replaces
>>> it with a colon ":"
>>> Unfortunately, this means the file cannot be found.
>>> Of course, replacing colons with slashes doesn't help, since Rev
>>> interprets this as an extra folder.
>>> Has anyone solved this problem?
>> 
>> Hi Josh,
>> 
>> My solution: disallow slashes in filenames.
>> 
>> Rev lets you detect slashes in filenames (by listing the files in a
>> folder for example) but doesn't let you [successfully] reference
>> files whose names contain them.
>> 
>> Slashes aren't allowed in filenames on Windows IIRC, so if you're
>> making a multi-platform thing you'll need to deal with it there
>> anyway.
>> 
>> I don't know a workaround.
>> 
>> Phil Davis
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list