How to manage file name containing a date with /
Thomas McGrath III
mcgrath3 at mac.com
Mon Jul 22 17:03:01 EDT 2013
Andre,
You are not answering the proper questions to come up with a solution for this.
Questions:
1. Where are the files located when using the Mac version of your app? (same computer? different computer?)
2. Where are the filed located when using the Windows version of your app? (same computer? different computer?)
3. Are they on a server?
4. Are they included with the app when passed on to a Windows machine?
5. What happens when you -- answer file "Choose a file:" -- do they show up?
6. If so what happens when you -- put url ("file:" & it) into tFile -- does tFile hold the correct full path or does it just say "2013.pdf" ?
7. Please post the code that you are trying to use so that we can see it and help you.
Suggestions:
1. Stop the process of naming files with a "/" -- instruct the client how to change this in the scanner software.
2. If the files exist on the Mac then why not run a batch on them and rename them all with a correctly formatted name -- then ship those to the Windows users. Do this with LC.
3. If there are many files 'and' many Mac and Windows users are to access them then suggest a server -- that way all of the clients can use the same code to access them.
4. If the answer file shows them then use 'it' to choose them.
5. If put URL ("file:" & it") shows the correct file path then use 'it' to choose them.
6. If not THEN you need to deal with the file name issue as suggested previously.
I know we can solve this one if we know enough about the workflow.
Yours
Tom
-- Tom McGrath III
http://lazyriver.on-rev.com
mcgrath3 at mac.com
On Jul 22, 2013, at 4:38 PM, André Bisseret <andre.bisseret at wanadoo.fr> wrote:
>
> Le 22 juil. 2013 à 21:39, J. Landman Gay a écrit :
>
>> On 7/22/13 2:32 PM, Dar Scott wrote:
>>> I'm not trying to fool the OS. It is already fooled the way I
>>> understand the problem. The scanner created files with "/" in the
>>> name.
>>
>> Hm. That would make my last response moot then. I guess I missed where these odd file names were coming from, but apparently they're not coming from disk.
>>
> the files are on the disk.
> The user receives paper documents. He digitizes the paper documents and saves them as PDF; if he receives the document by email he saves them as PDF.
> Anyway he saves this PDF files on his disk in a unique folder (say DOCS BASE) giving a name to each document an informative name. In a lot of these names he is including a date with slash as separator.
> such as "Joe PATIENT - bio checkup - 09/2013.pdf"
>
> I just discovered last week that he should have choose another separator.
> As I am developing on Mac and he is using a Mac we had no problem.The problem arises because he needs to pass the app to colleagues the majority of which are working on Windows.
>
> André
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list