Re: Open for access can't distinguish files differing only in their extension?
Re: Open for access can't distinguish files differing only in their extension?
- Subject: Re: Open for access can't distinguish files differing only in their extension?
- From: Timothy Bates <email@hidden>
- Date: Tue, 22 Apr 2003 11:02:55 +1000
sorted: the problem was that open for access needs a file passed in, and
cannot coerce a strong to a path. The confusion arose because instead of
saying" open for access cannot make a string path into a file path: try
inserting the word "file" between access and whatever you are passing in"
It said "Duplicate file name" which is right out of left field. Because I
had two files, I believed it.
Cheers,
tim
>
I have two files on the desktop:
>
irrA_spelling_data.txt
>
irrA_spelling_data.mxo
>
>
I try and open the txt file
>
>
set fPath to "Vortex:Users:tim:Desktop:irrA_spelling_data.txt"
>
set f to open for access fPath
>
>
-->Duplicate file name. Vortex:Users:tim:Desktop:irrA_spelling_data.txt
>
>
That shouldn't be happening: obviously there isn't a duplicate file, it is
>
just that open for access is failing to distinguish the two files? Anyone
>
got a work-around for this?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.