• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Open for access can't distinguish files differing only in their extension?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Open for access can't distinguish files differing only in their extension? (From: Timothy Bates <email@hidden>)

  • Prev by Date: Open for access can't distinguish files differing only in their extension?
  • Next by Date: Re: Open for access can't distinguish files differing only in their extension?
  • Previous by thread: Open for access can't distinguish files differing only in their extension?
  • Next by thread: Re: Open for access can't distinguish files differing only in their extension?
  • Index(es):
    • Date
    • Thread